Commit 5fbf8811 authored by Leigh Stoller's avatar Leigh Stoller

Another bit of DB state for extensions on offline clusters.

parent c527fcc4
......@@ -289,6 +289,7 @@ CREATE TABLE `apt_instance_aggregate_history` (
`last_retry` datetime default NULL,
`public_url` tinytext,
`webtask_id` varchar(128) NOT NULL default '',
`extension_needpush` datetime default NULL,
`manifest` mediumtext,
PRIMARY KEY (`uuid`,`aggregate_urn`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......@@ -310,6 +311,7 @@ CREATE TABLE `apt_instance_aggregates` (
`last_retry` datetime default NULL,
`public_url` tinytext,
`webtask_id` varchar(128) NOT NULL default '',
`extension_needpush` datetime default NULL,
`manifest` mediumtext,
PRIMARY KEY (`uuid`,`aggregate_urn`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instance_aggregates", "extension_needpush")) {
DBQueryFatal("alter table apt_instance_aggregates add ".
" `extension_needpush` datetime default NULL ".
" after webtask_id");
}
if (!DBSlotExists("apt_instance_aggregate_history", "extension_needpush")) {
DBQueryFatal("alter table apt_instance_aggregate_history add ".
" `extension_needpush` datetime default NULL ".
" after webtask_id");
}
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