Commit 6c044524 authored by Leigh B Stoller's avatar Leigh B Stoller

Add a protogeni_export flag for Jon, to be used in ptopgen to

cut down on the number of IDs we throw into the rspec advertisement.
parent 4df776d0
...@@ -2497,6 +2497,7 @@ CREATE TABLE `os_info` ( ...@@ -2497,6 +2497,7 @@ CREATE TABLE `os_info` (
`max_concurrent` int(11) default NULL, `max_concurrent` int(11) default NULL,
`mfs` tinyint(4) NOT NULL default '0', `mfs` tinyint(4) NOT NULL default '0',
`reboot_waittime` int(10) unsigned default NULL, `reboot_waittime` int(10) unsigned default NULL,
`protogeni_export` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`osid`), PRIMARY KEY (`osid`),
UNIQUE KEY `pid` (`pid`,`osname`), UNIQUE KEY `pid` (`pid`,`osname`),
KEY `OS` (`OS`), KEY `OS` (`OS`),
......
use strict;
use libdb;
#
# Changes for protogeni.
#
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("os_info", "protogeni_export")) {
DBQueryFatal("alter table os_info add ".
" `protogeni_export` tinyint(1) NOT NULL default '0'");
}
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