Commit 18e4e1cd authored by Leigh Stoller's avatar Leigh Stoller

Left out some of the changes from last commit.

parent 62d32728
......@@ -239,6 +239,8 @@ CREATE TABLE `apt_instance_aggregate_history` (
`status` varchar(32) default NULL,
`physnode_count` smallint(5) unsigned NOT NULL default '0',
`virtnode_count` smallint(5) unsigned NOT NULL default '0',
`retry_count` smallint(5) unsigned NOT NULL default '0',
`last_retry` datetime default NULL,
`public_url` tinytext,
`webtask_id` varchar(128) NOT NULL default '',
`manifest` mediumtext,
......
......@@ -23,6 +23,15 @@ sub DoUpdate($$$)
DBQueryFatal("alter table apt_instance_aggregates add " .
" `last_retry` datetime default NULL after retry_count");
}
if (!DBSlotExists("apt_instance_aggregate_history", "retry_count")) {
DBQueryFatal("alter table apt_instance_aggregate_history add " .
" `retry_count` smallint(5) unsigned NOT NULL ".
" default '0' after virtnode_count");
}
if (!DBSlotExists("apt_instance_aggregate_history", "last_retry")) {
DBQueryFatal("alter table apt_instance_aggregate_history add " .
" `last_retry` datetime default NULL after retry_count");
}
return 0;
}
......
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