Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
e83bf94b
Commit
e83bf94b
authored
Oct 22, 2008
by
Dries
Browse files
- Patch
#324110
by killes: added an index on uid to make deleting watchdog entries faster.
parent
8b6777a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/dblog/dblog.install
View file @
e83bf94b
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment