Commit 9bb8aba4 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add "sharing_mode" to reserved table for eventual use when sharing

nodes between slices or experiments. Just prototyping some ideas.
parent 02083681
......@@ -3014,6 +3014,7 @@ CREATE TABLE `reserved` (
`mustwipe` tinyint(4) NOT NULL default '0',
`genisliver_idx` int(10) unsigned default NULL,
`tmcd_redirect` tinytext,
`sharing_mode` tinytext,
PRIMARY KEY (`node_id`),
UNIQUE KEY `vname` (`pid`,`eid`,`vname`),
UNIQUE KEY `vname2` (`exptidx`,`vname`),
......
#
# Add slot to reserved table.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("reserved", "sharing_mode")) {
DBQueryFatal("alter table reserved add `sharing_mode` tinytext");
}
return 0;
}
1;
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