Commit 2f10ada5 authored by Leigh Stoller's avatar Leigh Stoller

Database mods to support "async" CreateSliver operation. Described

in more detail in a later commit.
parent a0b1c88a
......@@ -74,6 +74,9 @@ CREATE TABLE `geni_slices` (
`expiration_max` datetime default NULL,
`renew_limit` time default NULL,
`description` mediumtext default NULL,
`async_mode` tinyint(1) NOT NULL default '0',
`async_code` int(11) default '0',
`async_output` text,
PRIMARY KEY (`idx`),
UNIQUE KEY `hrn` (`hrn`),
UNIQUE KEY `uuid` (`uuid`)
......
use strict;
use GeniDB;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBSetDefault($dbhandle);
if (! DBSlotExists("geni_slices", "async_mode")) {
DBQueryFatal("alter table geni_slices add ".
" `async_mode` tinyint(1) NOT NULL default '0' ".
" after description");
}
if (! DBSlotExists("geni_slices", "async_code")) {
DBQueryFatal("alter table geni_slices add ".
" `async_code` int(11) default '0' ".
" after async_mode");
}
if (! DBSlotExists("geni_slices", "async_output")) {
DBQueryFatal("alter table geni_slices add ".
" `async_output` text ".
" after async_code");
}
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