Commit 10c5f55d authored by Leigh Stoller's avatar Leigh Stoller

Add new apt_instance_aggregates for multisite experiments.

parent 8564e185
......@@ -89,6 +89,22 @@ CREATE TABLE `apt_datasets` (
UNIQUE KEY `remote_uuid` (`remote_uuid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `apt_instance_aggregates`
--
DROP TABLE IF EXISTS `apt_instance_aggregates`;
CREATE TABLE `apt_instance_aggregates` (
`uuid` varchar(40) NOT NULL default '',
`name` varchar(16) default NULL,
`aggregate_urn` varchar(128) default NULL,
`status` varchar(32) default NULL,
`public_url` tinytext,
`webtask_id` varchar(128) NOT NULL default '',
`manifest` mediumtext,
PRIMARY KEY (`uuid`,`aggregate_urn`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `apt_instance_history`
--
......
#
# APT Stuff.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBTableExists("apt_instance_aggregates")) {
DBQueryFatal("CREATE TABLE `apt_instance_aggregates` ( ".
" `uuid` varchar(40) NOT NULL default '', ".
" `name` varchar(16) default NULL, ".
" `aggregate_urn` varchar(128) default NULL, ".
" `status` varchar(32) default NULL, ".
" `public_url` tinytext, ".
" `webtask_id` varchar(128) NOT NULL default '', ".
" `manifest` mediumtext, ".
" PRIMARY KEY (`uuid`,`aggregate_urn`) ".
") ENGINE=MyISAM DEFAULT CHARSET=latin1");
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment