Commit 3159a5d4 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add "info" to apt_instance_aggregate_history to record messages requesting

more info.
parent 05abd217
......@@ -160,7 +160,7 @@ CREATE TABLE `apt_instance_extension_info` (
`tstamp` datetime default NULL,
`uid` varchar(8) NOT NULL default '',
`uid_idx` mediumint(8) unsigned NOT NULL default '0',
`action` enum('request','deny') NOT NULL default 'request',
`action` enum('request','deny','info') NOT NULL default 'request',
`wanted` smallint(5) unsigned NOT NULL default '0',
`granted` smallint(5) unsigned default NULL,
`admin` tinyint(1) NOT NULL default '0',
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
my $type = DBSlotType("apt_instance_extension_info", "action");
if (!$type) {
Fatal("No 'action' slot in 'apt_instance_extension_info' table");
}
if (! ($type =~ /info/)) {
DBQueryFatal("alter table apt_instance_extension_info ".
" change `action` `action` ".
" enum('request','deny','info') ".
" NOT NULL default 'request'");
}
return 0;
}
# Local Variables:
# mode:perl
# End:
Supports Markdown
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