Commit 91b7a56c authored by Jonathon Duerig's avatar Jonathon Duerig

Update: node_id is no longer unique in external_networks

parent 69721257
...@@ -1465,8 +1465,7 @@ CREATE TABLE `external_networks` ( ...@@ -1465,8 +1465,7 @@ CREATE TABLE `external_networks` (
`external_manager` tinytext, `external_manager` tinytext,
`external_interface` tinytext, `external_interface` tinytext,
`external_wire` tinytext, `external_wire` tinytext,
PRIMARY KEY (`network_id`), PRIMARY KEY (`network_id`)
UNIQUE KEY `node_id` (`node_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1; ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --
......
#
# Node in external_networks should no longer be a unique key. Demote it.
#
use strict;
use libdb;
my $impotent = 0;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("alter table external_networks drop index `node_id`");
return 0;
}
1;
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