Commit 10a155a0 authored by Leigh B Stoller's avatar Leigh B Stoller

Add monitor_pid and publicid to geni_slices.

parent caa89fa9
......@@ -50,6 +50,7 @@ CREATE TABLE `geni_slices` (
`hrn` varchar(256) NOT NULL default '',
`idx` mediumint(8) unsigned NOT NULL default '0',
`uuid` varchar(40) NOT NULL default '',
`publicid` varchar(40) default NULL,
`exptidx` int(11) default NULL,
`created` datetime default NULL,
`expires` datetime default NULL,
......@@ -64,6 +65,7 @@ CREATE TABLE `geni_slices` (
`needsfirewall` tinyint(1) NOT NULL default '0',
`isplaceholder` tinyint(1) NOT NULL default '0',
`isshutdown` tinyint(1) NOT NULL default '0',
`monitor_pid` int(11) default '0',
PRIMARY KEY (`idx`),
UNIQUE KEY `hrn` (`hrn`),
UNIQUE KEY `uuid` (`uuid`)
......
#
# Add monitor_pid and publicid slots to geni_slices
#
use strict;
use GeniDB;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBSetDefault($dbhandle);
if (!DBSlotExists("geni_slices", "monitor_pid")) {
DBQueryFatal("alter table geni_slices add ".
" `monitor_pid` int(11) default '0'");
}
if (!DBSlotExists("geni_slices", "publicid")) {
DBQueryFatal("alter table geni_slices add ".
" `publicid` varchar(40) default NULL after uuid");
}
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