system_update_182

5 system.install 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;
}
Login or register to post comments