Commit 78e3681c authored by webchick's avatar webchick

#211439 follow-up by catch: Add missing index for module_list().

parent 348d45e9
...@@ -1368,7 +1368,7 @@ function system_schema() { ...@@ -1368,7 +1368,7 @@ function system_schema() {
), ),
'primary key' => array('filename'), 'primary key' => array('filename'),
'indexes' => array( 'indexes' => array(
'modules' => array('type', 'status', 'weight', 'filename'), 'modules' => array('type', 'status', 'weight', 'name'),
'type_name' => array('type', 'name'), 'type_name' => array('type', 'name'),
), ),
); );
...@@ -1955,7 +1955,7 @@ function system_update_7018() { ...@@ -1955,7 +1955,7 @@ function system_update_7018() {
$ret = array(); $ret = array();
db_drop_index($ret, 'system', 'modules'); db_drop_index($ret, 'system', 'modules');
db_change_field($ret, 'system', 'type', 'type', array('type' => 'varchar', 'length' => 12, 'not null' => TRUE, 'default' => '')); 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')); db_add_index($ret, 'system', 'type_name', array('type', 'name'));
return $ret; return $ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment