Commit 6861f2a9 authored by Leigh B Stoller's avatar Leigh B Stoller

Add extension history slot to apt_instances table to record all

extensions, to show on the admin extend page.
parent bb01665c
......@@ -144,6 +144,7 @@ CREATE TABLE `apt_instances` (
`user_lockdown` tinyint(1) NOT NULL default '0',
`extension_code` varchar(32) default NULL,
`extension_reason` mediumtext,
`extension_history` mediumtext,
`extension_adminonly` tinyint(1) NOT NULL default '0',
`extension_count` smallint(5) unsigned NOT NULL default '0',
`extension_days` smallint(5) unsigned NOT NULL default '0',
......
#
# APT Stuff.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instances", "extension_history")) {
DBQueryFatal("alter table apt_instances add ".
" `extension_history` mediumtext ".
" after extension_reason");
}
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