Commit 3ca164ac authored by Jonathon Duerig's avatar Jonathon Duerig

Add experiment index to address allocation table

parent ee47b624
......@@ -5113,6 +5113,7 @@ CREATE TABLE `virt_address_allocation` (
`pool_id` varchar(32) NOT NULL default '',
`pid` varchar(48) NOT NULL default '',
`eid` varchar(32) NOT NULL default '',
`exptidx` int(11) NOT NULL default '0',
`count` int(10) NOT NULL default '0',
`restriction` enum('contiguous','cidr','any') NOT NULL default 'any',
`version` enum('ipv4','ipv6') NOT NULL default 'ipv4',
......
#
# Dataset stuff
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("virt_address_allocation", "exptidx")) {
DBQueryFatal("alter table virt_address_allocation add ".
" `exptidx` int(11) NOT NULL default 0 after `eid`");
}
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