You are here

function acl_update_6002 in ACL 6

Add 'number' column, add indexes.

File

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

Code

function acl_update_6002() {
  $ret = array();
  db_add_field($ret, 'acl', 'number', array(
    'type' => 'int',
    'description' => "A number for this ACL entry, given by the module that created it; use either 'name' or 'number'.",
  ));
  db_add_index($ret, 'acl', 'name', array(
    'name',
  ));
  db_add_index($ret, 'acl', 'number', array(
    'number',
  ));
  return $ret;
}