From 78e3681cde7f4115b7f65cc3ebb0a2e61a27595a Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 8 Aug 2009 19:25:58 +0000 Subject: #211439 follow-up by catch: Add missing index for module_list(). --- modules/system/system.install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/system/system.install') 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; } -- cgit v1.2.3