You are here

function acl_update_6003 in ACL 6

Install better indexes.

File

./acl.install, line 213
Install, update and uninstall functions for the acl module.

Code

function acl_update_6003() {
  $ret = array();
  db_drop_index($ret, 'acl', 'name');
  db_drop_index($ret, 'acl', 'number');
  db_add_index($ret, 'acl', 'module_name_number', array(
    array(
      'module',
      64,
    ),
    array(
      'name',
      64,
    ),
    'number',
  ));
  db_add_index($ret, 'acl', 'module_number', array(
    array(
      'module',
      64,
    ),
    'number',
  ));
  return $ret;
}