Commit 37b9bdd2 authored by Leigh Stoller's avatar Leigh Stoller

More KEYs for the node_history table.

parent 824f5786
......@@ -2380,7 +2380,9 @@ CREATE TABLE `node_history` (
KEY `node_id` (`node_id`,`history_id`),
KEY `exptidx` (`exptidx`),
KEY `stamp` (`stamp`),
KEY `cnet_IP` (`cnet_IP`)
KEY `cnet_IP` (`cnet_IP`),
KEY `nodestamp` (`node_id`,`stamp`);
KEY `ipstamp` (`cnet_IP`,`stamp`);
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
......
#
# Add keys to node_history.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBKeyExists("node_history", "nodestamp")) {
DBQueryFatal("alter table node_history add " .
" KEY `nodestamp` (`node_id`,`stamp`)");
}
if (!DBKeyExists("node_history", "ipstamp")) {
DBQueryFatal("alter table node_history add " .
" KEY `ipstamp` (`cnet_IP`,`stamp`)");
}
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