You are here

function password_policy_update_5000 in Password Policy 5

File

./password_policy.install, line 86

Code

function password_policy_update_5000() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {password_policy_users} ADD KEY (uid)");
      $ret[] = update_sql("ALTER TABLE {password_policy_expiration} ADD KEY (uid)");
      break;
  }
  return $ret;
}