Commit a8a902be authored by Mike Hibler's avatar Mike Hibler

Add `role` as a key for the interfaces table.

parent 1e5717a8
......@@ -1909,7 +1909,8 @@ CREATE TABLE `interfaces` (
PRIMARY KEY (`node_id`,`card`,`port`),
KEY `mac` (`mac`),
KEY `IP` (`IP`),
KEY `uuid` (`uuid`)
KEY `uuid` (`uuid`),
KEY `role` (`role`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBKeyExists("interfaces", "role")) {
DBQueryFatal("alter table interfaces add key `role` (`role`)");
}
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