Commit 7ab4d9b4 authored by Leigh Stoller's avatar Leigh Stoller

Add feature slot for use in controlling who can access an aggregate.

Not sure I like this approach, might revisit later.
parent 6a8db9e4
......@@ -143,6 +143,7 @@ CREATE TABLE `apt_aggregates` (
`reservations` tinyint(1) NOT NULL default '0',
`panicpoweroff` tinyint(1) NOT NULL default '0',
`portals` set('emulab','aptlab','cloudlab','phantomnet','powder') default NULL,
`canuse_feature` varchar(64) default NULL,
`jsondata` text,
PRIMARY KEY (`urn`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_aggregates", "canuse_feature")) {
DBQueryFatal("alter table apt_aggregates add ".
" `canuse_feature` varchar(64) default NULL ".
" after panicpoweroff");
}
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