function system_update_1015 in Drupal 5
Add an index on watchdog type.
Related topics
File
- modules/
system/ system.install, line 3404
Code
function system_update_1015() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql('ALTER TABLE {watchdog} ADD INDEX (type)');
break;
case 'pgsql':
$ret[] = update_sql('CREATE INDEX {watchdog}_type_idx ON {watchdog}(type)');
break;
}
return $ret;
}