You are here

function role_expire_update_6122 in Role Expire 6

Set up primary keys on the tables

File

./role_expire.install, line 164
Role expire install.

Code

function role_expire_update_6122() {
  $ret = array();
  db_drop_index($ret, 'role_expire', 'uid');
  db_add_primary_key($ret, 'role_expire', array(
    'uid',
    'rid',
  ));
  db_drop_index($ret, 'role_expire_length', 'rid');
  db_add_primary_key($ret, 'role_expire_length', array(
    'rid',
  ));
  return $ret;
}