Commit 54aed333 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add reservations flag to apt_aggregates to flag which clusters will

do reservations.
parent 1e22579a
......@@ -71,6 +71,7 @@ CREATE TABLE `apt_aggregates` (
`updated` datetime NOT NULL default '0000-00-00 00:00:00',
`weburl` tinytext,
`has_datasets` tinyint(1) NOT NULL default '0',
`reservations` tinyint(1) NOT NULL default '0',
`portals` set('emulab','aptlab','cloudlab','phantomnet') default NULL,
`jsondata` text,
PRIMARY KEY (`urn`)
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_aggregates", "reservations")) {
DBQueryFatal("alter table apt_aggregates add " .
"`reservations` tinyint(1) NOT NULL default '0' ".
" after has_datasets");
}
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