Commit 0b2b1ee4 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add paniced flag to apt_instances.

parent caf36b9f
......@@ -224,6 +224,8 @@ CREATE TABLE `apt_instances` (
`status_timestamp` datetime default NULL,
`canceled` tinyint(2) NOT NULL default '0',
`canceled_timestamp` datetime default NULL,
`paniced` tinyint(2) NOT NULL default '0',
`paniced_timestamp` datetime default NULL,
`admin_lockdown` tinyint(1) NOT NULL default '0',
`user_lockdown` tinyint(1) NOT NULL default '0',
`extension_code` varchar(32) default NULL,
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instances", "paniced")) {
DBQueryFatal("alter table apt_instances add ".
" `paniced` tinyint(2) NOT NULL default '0' ".
" after canceled_timestamp");
}
if (!DBSlotExists("apt_instances", "paniced_timestamp")) {
DBQueryFatal("alter table apt_instances add ".
" `paniced_timestamp` datetime default NULL ".
" after paniced");
}
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