}
}
- if ($oldversion < 2003042600) {
+ if ($oldversion < 2003042600) {
/// Some more indexes - we need al the help we can get on the logs
execute_sql(" ALTER TABLE `{$CFG->prefix}log` ADD INDEX(module) ");
execute_sql(" ALTER TABLE `{$CFG->prefix}log` ADD INDEX(action) ");
`info` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `course` (`course`),
- KEY `userid` (`userid`)
+ KEY `userid` (`userid`),
+ KEY `module` (`module`),
+ KEY `action` (`action`)
) TYPE=MyISAM COMMENT='Every action is logged as far as possible.';
# --------------------------------------------------------