Commit e83bf94b authored by Dries's avatar Dries

- Patch #324110 by killes: added an index on uid to make deleting watchdog entries faster.

parent 8b6777a3
......@@ -98,6 +98,7 @@ function dblog_schema() {
'primary key' => array('wid'),
'indexes' => array(
'type' => array('type'),
'uid' => array('uid'),
),
);
......@@ -113,3 +114,12 @@ function dblog_update_7001() {
db_change_field($ret, 'watchdog', 'referer', 'referer', array('type' => 'varchar', 'length' => 255, 'not null' => FALSE, 'default' => ''));
return $ret;
}
/**
* Add index on uid.
*/
function dblog_update_7002() {
$ret = array();
db_add_index($ret, 'watchdog', 'uid', array('uid'));
return $ret;
}
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