Commit 372260bc authored by Leigh B Stoller's avatar Leigh B Stoller

Add a slot to the apt_aggregates table to flag aggregates that require a

power off panic.
parent 8fb9abb4
......@@ -141,6 +141,7 @@ CREATE TABLE `apt_aggregates` (
`weburl` tinytext,
`has_datasets` tinyint(1) NOT NULL default '0',
`reservations` tinyint(1) NOT NULL default '0',
`panicpoweroff` tinyint(1) NOT NULL default '0',
`portals` set('emulab','aptlab','cloudlab','phantomnet','powder') default NULL,
`jsondata` text,
use strict;
use libdb;
sub DoUpdate($$$)
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_aggregates", "panicpoweroff")) {
DBQueryFatal("alter table apt_aggregates add ".
" `panicpoweroff` tinyint(1) NOT NULL default '0' ".
" after nolocalimages");
return 0;
# 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