Commit b45e2637 authored by Jonathon Duerig's avatar Jonathon Duerig

Make idx of address pools autoincrement

parent 3ca164ac
......@@ -5109,7 +5109,7 @@ CREATE TABLE `virt_node_public_addr` (
DROP TABLE IF EXISTS `virt_address_allocation`;
CREATE TABLE `virt_address_allocation` (
`idx` int(10) unsigned NOT NULL default '0',
`idx` int(11) NOT NULL auto_increment,
`pool_id` varchar(32) NOT NULL default '',
`pid` varchar(48) NOT NULL default '',
`eid` varchar(32) NOT NULL default '',
......
#
# Dataset stuff
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("alter table virt_address_allocation modify ".
" `idx` int(11) NOT NULL AUTO_INCREMENT");
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