Commit 01eedf62 authored by Leigh B Stoller's avatar Leigh B Stoller

Add expiration_max and renew_limit to geni_slices table.

parent a2ad7927
......@@ -68,6 +68,8 @@ CREATE TABLE `geni_slices` (
`isplaceholder` tinyint(1) NOT NULL default '0',
`isshutdown` tinyint(1) NOT NULL default '0',
`monitor_pid` int(11) default '0',
`expiration_max` datetime default NULL,
`renew_limit` time default NULL,
PRIMARY KEY (`idx`),
UNIQUE KEY `hrn` (`hrn`),
UNIQUE KEY `uuid` (`uuid`)
# Add slots for expiration handling.
use strict;
use GeniDB;
sub DoUpdate($$$)
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("geni_slices", "expiration_max")) {
DBQueryFatal("alter table geni_slices add ".
" `expiration_max` datetime default NULL");
if (!DBSlotExists("geni_slices", "renew_limit")) {
DBQueryFatal("alter table geni_slices add ".
" `renew_limit` time default NULL");
return 0;
# 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