You are here

function userpoints_update_5009 in User Points 5.3

File

./userpoints.install, line 214

Code

function userpoints_update_5009() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
    case 'pgsql':
      $ret[] = update_sql("ALTER TABLE {userpoints} DROP INDEX tid");
      $ret[] = update_sql("ALTER TABLE {userpoints} ADD INDEX uid_tid (uid, tid)");
      break;
  }
  return $ret;
}