summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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;
}