Commit 67accfc4 authored by Leigh B Stoller's avatar Leigh B Stoller

Well, it appears that schemadiff is confused by INDEX, so change

them to KEY.
parent c4a15922
......@@ -2377,9 +2377,9 @@ CREATE TABLE `node_history` (
`phys_nodeid` varchar(32) default NULL,
PRIMARY KEY (`history_id`),
KEY `node_id` (`node_id`,`history_id`),
INDEX `exptidx` (`exptidx`),
INDEX `stamp` (`stamp`),
INDEX `cnet_IP` (`cnet_IP`)
KEY `exptidx` (`exptidx`),
KEY `stamp` (`stamp`),
KEY `cnet_IP` (`cnet_IP`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
......
......@@ -10,15 +10,15 @@ sub DoUpdate($$$)
if (!DBKeyExists("node_history", "exptidx")) {
DBQueryFatal("alter table node_history add " .
" INDEX exptidx (exptidx)");
" KEY exptidx (exptidx)");
}
if (!DBKeyExists("node_history", "stamp")) {
DBQueryFatal("alter table node_history add " .
" INDEX stamp (stamp)");
" KEY stamp (stamp)");
}
if (!DBKeyExists("node_history", "cnet_IP")) {
DBQueryFatal("alter table node_history add " .
" INDEX cnet_IP (cnet_IP)");
" KEY cnet_IP (cnet_IP)");
}
return 0;
}
......
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