summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-08 19:25:58 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-08 19:25:58 +0000
commit78e3681cde7f4115b7f65cc3ebb0a2e61a27595a (patch)
tree8b59fc6c8fd1de9f3c9d18204c5d1cd179c09e65 /modules/system/system.install
parent348d45e928862f4b1387e75b9a8c57600e90dab0 (diff)
downloadbrdo-78e3681cde7f4115b7f65cc3ebb0a2e61a27595a.tar.gz
brdo-78e3681cde7f4115b7f65cc3ebb0a2e61a27595a.tar.bz2
#211439 follow-up by catch: Add missing index for module_list().
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index e3b2ca7b6..46ded8dbf 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -1368,7 +1368,7 @@ function system_schema() {
),
'primary key' => array('filename'),
'indexes' => array(
- 'modules' => array('type', 'status', 'weight', 'filename'),
+ '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', 'filename'));
+ db_add_index($ret, 'system', 'modules', array('type', 'status', 'weight', 'name'));
db_add_index($ret, 'system', 'type_name', array('type', 'name'));
return $ret;
}