system_update_6035

Versions
6
system_update_6035()

Change index on system table for better performance.

Related topics

Code

modules/system/system.install, line 2188

<?php
function system_update_6035() {
  $ret = array();
  db_drop_index($ret, 'system', 'weight');
  db_add_index($ret, 'system', 'modules', array(array('type', 12), 'status', 'weight', 'filename'));
  db_add_index($ret, 'system', 'bootstrap', array(array('type', 12), 'status', 'bootstrap', 'weight', 'filename'));
  return $ret;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.