summaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-08-16 19:54:36 +0000
committerDries Buytaert <dries@buytaert.net>2005-08-16 19:54:36 +0000
commitab633dad9b5854ca7d21f9c4c75aab3a5523c3ef (patch)
tree4ef3bd1d9de5fff9d97af3e6d3502349a66176be /database
parentb114336554781011cce6fe4e72a20a2812c174cf (diff)
downloadbrdo-ab633dad9b5854ca7d21f9c4c75aab3a5523c3ef.tar.gz
brdo-ab633dad9b5854ca7d21f9c4c75aab3a5523c3ef.tar.bz2
- Patch #28986: fixed Incorrect order of PosgreSQL statements.
Diffstat (limited to 'database')
-rw-r--r--database/updates.inc2
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;