From 5d810f73e73e8dc2359f6aff0c61562567c7a859 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 3 Sep 2010 19:49:56 +0000 Subject: - Patch #887870 by sun, David_Rothstein: make system_list() return full module records. --- modules/system/system.install | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'modules/system/system.install') diff --git a/modules/system/system.install b/modules/system/system.install index 4c8dcb9fa..1e110d880 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -1573,8 +1573,7 @@ function system_schema() { ), 'primary key' => array('filename'), 'indexes' => array( - 'bootstrap' => array('status', 'bootstrap', 'type', 'weight', 'name'), - 'system_list' => array('weight', 'name'), + 'system_list' => array('status', 'bootstrap', 'type', 'weight', 'name'), 'type_name' => array('type', 'name'), ), ); @@ -2884,6 +2883,15 @@ function system_update_7060(&$sandbox) { } } +/** + * Replace 'system_list' index with 'bootstrap' index on {system}. + */ +function system_update_7061() { + db_drop_index('system', 'bootstrap'); + db_drop_index('system', 'system_list'); + db_add_index('system', 'system_list', array('status', 'bootstrap', 'type', 'weight', 'name')); +} + /** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. -- cgit v1.2.3