Commit 1a2653aa authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add some indexes to logfiles table.

parent 0c408f18
......@@ -2958,7 +2958,9 @@ CREATE TABLE `logfiles` (
`compressed` tinyint(1) NOT NULL default '0',
`stored` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`logid`),
KEY `logidx` (`logidx`)
KEY `logidx` (`logidx`),
KEY `filename` (`filename`(128)),
KEY `isopen` (`isopen`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBKeyExists("logfiles", "filename")) {
DBQueryFatal("alter table logfiles add ".
" KEY `filename` (`filename`(128))");
}
if (!DBKeyExists("logfiles", "isopen")) {
DBQueryFatal("alter table logfiles add ".
" KEY `isopen` (`isopen`)");
}
return 0;
}
# 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