Commit e8eb93bf authored by Mike Hibler's avatar Mike Hibler

Give external_networks unique key a name.

At least our schemadiff script assumes that unique keys have names.
mysqldump generates them as well.
parent 84ea58dc
......@@ -1290,7 +1290,7 @@ CREATE TABLE `external_networks` (
`min_vlan` int(11) NOT NULL default '256',
`max_vlan` int(11) NOT NULL default '1000',
PRIMARY KEY (`network_id`),
UNIQUE KEY (`node_id`)
UNIQUE KEY `node_id` (`node_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
......
......@@ -16,7 +16,7 @@ sub DoUpdate($$$)
" `min_vlan` int(11) NOT NULL default '256', ".
" `max_vlan` int(11) NOT NULL default '1000', ".
" PRIMARY KEY (`network_id`), ".
" UNIQUE KEY (`node_id`) ".
" UNIQUE KEY `node_id` (`node_id`) ".
") ENGINE=MyISAM DEFAULT CHARSET=latin1");
}
......
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