function system_update_182 in Drupal 4
Same name and namespace in other branches
- 5 modules/system/system.install \system_update_182()
The lid field in pgSQL should not be UNIQUE, but an INDEX.
File
- database/
updates.inc, line 2005
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;
}