summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-09-03 19:49:56 +0000
committerDries Buytaert <dries@buytaert.net>2010-09-03 19:49:56 +0000
commit5d810f73e73e8dc2359f6aff0c61562567c7a859 (patch)
treeeb98b309db1ccf337f395b0dcd5bf8d49025804a /modules/system/system.install
parent9427ec09f82febc09617013bb39a1ac30c1d7d19 (diff)
downloadbrdo-5d810f73e73e8dc2359f6aff0c61562567c7a859.tar.gz
brdo-5d810f73e73e8dc2359f6aff0c61562567c7a859.tar.bz2
- Patch #887870 by sun, David_Rothstein: make system_list() return full module records.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install12
1 files changed, 10 insertions, 2 deletions
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'),
),
);
@@ -2885,6 +2884,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.
*/