Commit 7f8298b4 authored by Leigh B Stoller's avatar Leigh B Stoller

Add flag to mark instances with an extension request outstanding.

parent 9d81051c
......@@ -183,6 +183,7 @@ CREATE TABLE `apt_instances` (
`extension_reason` mediumtext,
`extension_history` mediumtext,
`extension_adminonly` tinyint(1) NOT NULL default '0',
`extension_requested` tinyint(1) NOT NULL default '0',
`extension_count` smallint(5) unsigned NOT NULL default '0',
`extension_days` smallint(5) unsigned NOT NULL default '0',
`physnode_count` smallint(5) unsigned NOT NULL default '0',
......
#
# APT stuff
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instances", "extension_requested")) {
DBQueryFatal("alter table apt_instances add ".
" `extension_requested` tinyint(1) NOT NULL default '0' ".
" after extension_adminonly");
}
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