From 6c04452488e6c3549c69d2e0378630f51f40f4d5 Mon Sep 17 00:00:00 2001 From: Leigh B Stoller Date: Thu, 8 Apr 2010 13:58:35 -0600 Subject: [PATCH] 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. --- sql/database-create.sql | 1 + sql/updates/4/197 | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 sql/updates/4/197 diff --git a/sql/database-create.sql b/sql/database-create.sql index 008247791..04eaa7e13 100644 --- a/sql/database-create.sql +++ b/sql/database-create.sql @@ -2497,6 +2497,7 @@ CREATE TABLE `os_info` ( `max_concurrent` int(11) default NULL, `mfs` tinyint(4) NOT NULL default '0', `reboot_waittime` int(10) unsigned default NULL, + `protogeni_export` tinyint(1) NOT NULL default '0', PRIMARY KEY (`osid`), UNIQUE KEY `pid` (`pid`,`osname`), KEY `OS` (`OS`), diff --git a/sql/updates/4/197 b/sql/updates/4/197 new file mode 100644 index 000000000..a7234859a --- /dev/null +++ b/sql/updates/4/197 @@ -0,0 +1,18 @@ +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; + -- GitLab