diff options
-rw-r--r-- | database/updates.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/database/updates.inc b/database/updates.inc index e57ed1742..28634854f 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -2474,9 +2474,9 @@ function update_137() { elseif ($GLOBALS['db_type'] == 'pgsql') { $ret[] = update_sql("ALTER TABLE {locales_source} RENAME location TO location_old"); $ret[] = update_sql("ALTER TABLE {locales_source} ADD location varchar(255)"); + $ret[] = update_sql("UPDATE {locales_source} SET location = location_old"); $ret[] = update_sql("ALTER TABLE {locales_source} ALTER location SET NOT NULL"); $ret[] = update_sql("ALTER TABLE {locales_source} ALTER location SET DEFAULT ''"); - $ret[] = update_sql("UPDATE {locales_source} SET location = location_old"); $ret[] = update_sql("ALTER TABLE {locales_source} DROP location_old"); } return $ret; |