Commit 9477e47a authored by Leigh B Stoller's avatar Leigh B Stoller

Add a disabled flag to apt_aggregates table. As for extended downtimes.

parent c1cd811f
......@@ -66,6 +66,7 @@ CREATE TABLE `apt_aggregates` (
`abbreviation` varchar(16) NOT NULL default '',
`adminonly` tinyint(1) NOT NULL default '0',
`isfederate` tinyint(1) NOT NULL default '0',
`disabled` tinyint(1) NOT NULL default '0',
`noupdate` tinyint(1) NOT NULL default '0',
`updated` datetime NOT NULL default '0000-00-00 00:00:00',
`weburl` tinytext,
......
#
# Add disabled flag to apt_aggregates
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_aggregates", "disabled")) {
DBQueryFatal("alter table apt_aggregates add ".
" `disabled` tinyint(1) NOT NULL default '0' ".
"after isfederate");
}
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