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
78e3681c
Commit
78e3681c
authored
Aug 08, 2009
by
webchick
Browse files
#211439
follow-up by catch: Add missing index for module_list().
parent
348d45e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/system/system.install
View file @
78e3681c
...
...
@@ -1368,7 +1368,7 @@ function system_schema() {
),
'primary key'
=>
array
(
'filename'
),
'indexes'
=>
array
(
'modules'
=>
array
(
'type'
,
'status'
,
'weight'
,
'
file
name'
),
'modules'
=>
array
(
'type'
,
'status'
,
'weight'
,
'name'
),
'type_name'
=>
array
(
'type'
,
'name'
),
),
);
...
...
@@ -1955,7 +1955,7 @@ function system_update_7018() {
$ret
=
array
();
db_drop_index
(
$ret
,
'system'
,
'modules'
);
db_change_field
(
$ret
,
'system'
,
'type'
,
'type'
,
array
(
'type'
=>
'varchar'
,
'length'
=>
12
,
'not null'
=>
TRUE
,
'default'
=>
''
));
db_add_index
(
$ret
,
'system'
,
'modules'
,
array
(
'type'
,
'status'
,
'weight'
,
'
file
name'
));
db_add_index
(
$ret
,
'system'
,
'modules'
,
array
(
'type'
,
'status'
,
'weight'
,
'name'
));
db_add_index
(
$ret
,
'system'
,
'type_name'
,
array
(
'type'
,
'name'
));
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