Commit 0d3086ba authored by Leigh Stoller's avatar Leigh Stoller

Add locked slot to the lans table, since we now have lans that

span experiments.
parent 4128acbb
......@@ -1973,6 +1973,7 @@ CREATE TABLE `lans` (
`type` varchar(32) NOT NULL default '',
`link` int(11) default NULL,
`ready` tinyint(1) default '0',
`locked` datetime default NULL,
PRIMARY KEY (`lanid`),
KEY `pideid` (`pid`,`eid`),
KEY `exptidx` (`exptidx`)
......
#
# Add locked slot to lans table.
#
use strict;
use libdb;
use Lan;
my $impotent = 0;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("lans", "locked")) {
DBQueryFatal("alter table lans add ".
" `locked` datetime default NULL");
}
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