function spam_update_5304 in Spam 5.3
Add missing index, showed up in my slow query log.
File
- ./
spam.install, line 466
Code
function spam_update_5304() {
// Update contontained in _5300 if updating from 5.x-1.x spam module.
if (spam_skip_update()) {
return array();
}
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
default:
$ret[] = update_sql('ALTER TABLE {spam_log} ADD KEY (message);');
}
return $ret;
}