summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-10-22 18:32:31 +0000
committerDries Buytaert <dries@buytaert.net>2008-10-22 18:32:31 +0000
commite83bf94b5ba1d30cd8e2158bf59bffedc0565102 (patch)
tree86bc0e6b56a177185e5bdc2f577903632d74164f /modules
parent8b6777a3bffefc04016da62983fb1a333e8a5160 (diff)
downloadbrdo-e83bf94b5ba1d30cd8e2158bf59bffedc0565102.tar.gz
brdo-e83bf94b5ba1d30cd8e2158bf59bffedc0565102.tar.bz2
- Patch #324110 by killes: added an index on uid to make deleting watchdog entries faster.
Diffstat (limited to 'modules')
-rw-r--r--modules/dblog/dblog.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/dblog/dblog.install b/modules/dblog/dblog.install
index ca9107c8f..e7310275d 100644
--- a/modules/dblog/dblog.install
+++ b/modules/dblog/dblog.install
@@ -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;
+}