Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

SQL table definition

Code Block
CREATE TABLE IF NOT EXISTS `variable` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `name` varchar(128) NOT NULL default '',
  `value` longtext NOT NULL,
  `setby` varchar(40128) default NULL,
  `timestamp` timestampdatetime NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB InnoDB DEFAULT CHARSET=utf8latin1 AUTO_INCREMENT=1 ;

Examples

...

Code Block
my @contacts = (
 {
  "firstname" => "Joe",
  "lastname" => "Doe",
  "email" => ["joe@somewhere.org", "jdoe22@unity.ncsu.edu"],
  "employee_id" => 3342
 },
 {
  "firstname" => "Jane",
  "lastname" => "Doe",
  "email" => ["jane@somewhere.org"],
  "employee_id" => 7865
 }
);  
$self->data->set_variable("contacts", \@contacts);

...