Commit 2c4dba27 authored by Leigh B Stoller's avatar Leigh B Stoller

Add a status timestamp to the apt_instances table.

parent 6402a1af
......@@ -195,6 +195,7 @@ CREATE TABLE `apt_instances` (
`public_url` tinytext,
`created` datetime default NULL,
`status` varchar(32) default NULL,
`status_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,
......
#
# APT stuff
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instances", "status_timestamp")) {
DBQueryFatal("alter table apt_instances add ".
" `status_timestamp` datetime default NULL ".
" after status");
}
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