You are here

function system_update_111 in Drupal 4

Same name and namespace in other branches
  1. 5 modules/system/system.install \system_update_111()

File

database/updates.inc, line 87

Code

function system_update_111() {
  $ret = array();
  $ret[] = update_sql("DELETE FROM {variable} WHERE name LIKE 'throttle_%'");
  if ($GLOBALS['db_type'] == 'mysql') {
    $ret[] = update_sql('ALTER TABLE {sessions} ADD PRIMARY KEY sid (sid)');
  }
  elseif ($GLOBALS['db_type'] == 'pgsql') {
    $ret[] = update_sql('ALTER TABLE {sessions} ADD UNIQUE(sid)');
  }
  return $ret;
}