You are here

function system_update_182 in Drupal 5

Same name and namespace in other branches
  1. 4 database/updates.inc \system_update_182()

The lid field in pgSQL should not be UNIQUE, but an INDEX.

File

modules/system/system.install, line 3062

Code

function system_update_182() {
  $ret = array();
  if ($GLOBALS['db_type'] == 'pgsql') {
    $ret[] = update_sql('ALTER TABLE {locales_target} DROP CONSTRAINT {locales_target}_lid_key');
    $ret[] = update_sql('CREATE INDEX {locales_target}_lid_idx ON {locales_target} (lid)');
  }
  return $ret;
}