Commit 64a35317 authored by Leigh Stoller's avatar Leigh Stoller

DB support for example profile management, coming later.

parent 69c75587
......@@ -611,6 +611,7 @@ CREATE TABLE `apt_profiles` (
`locker_pid` int(11) default '0',
`lastused` datetime default NULL,
`usecount` int(11) default '0',
`examples_portals` set('emulab','aptlab','cloudlab','phantomnet','powder') default NULL,
PRIMARY KEY (`profileid`),
UNIQUE KEY `pidname` (`pid_idx`,`name`,`version`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_profiles", "examples_portals")) {
DBQueryFatal("alter table apt_profiles add ".
" `examples_portals` set('emulab','aptlab','cloudlab',".
" 'phantomnet','powder') default NULL ".
" after usecount");
}
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