system_update_182
- Versions
- 4.7 – 5
system_update_182()
The lid field in pgSQL should not be UNIQUE, but an INDEX.
Code
database/updates.inc, line 2005
<?php
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 