Commit 5e5daaca authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Lets make explicit in the history records whether an extension request

needs admin approval. I can figure this out from the data, but easier
if we just set a flag.
parent 63b8516e
......@@ -223,6 +223,7 @@ CREATE TABLE `apt_instance_extension_info` (
`action` enum('request','deny','info') NOT NULL default 'request',
`wanted` smallint(5) unsigned NOT NULL default '0',
`granted` smallint(5) unsigned default NULL,
`needapproval` tinyint(1) NOT NULL default '0',
`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", "needapproval")) {
DBQueryFatal("alter table apt_instance_extension_info add " .
" `needapproval` tinyint(1) NOT NULL default '0' ".
" after granted");
}
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