Commit 6d3de957 authored by Leigh Stoller's avatar Leigh Stoller

Store the maximum allowed extension with the extension request info so

we can infer if an extension request has been limited by the reservation
schedule.
parent 266ba53d
......@@ -266,6 +266,7 @@ CREATE TABLE `apt_instance_extension_info` (
`autoapproved` tinyint(1) NOT NULL default '0',
`autoapproved_reason` tinytext,
`autoapproved_metrics` mediumtext,
`maxextension` datetime default NULL,
`admin` tinyint(1) NOT NULL default '0',
`reason` mediumtext,
`message` mediumtext,
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instance_extension_info", "maxextension")) {
DBQueryFatal("alter table apt_instance_extension_info add ".
" `maxextension` datetime default NULL ".
" after autoapproved_metrics");
}
return 0;
}
# 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