Commit ab633dad authored by Dries's avatar Dries
Browse files

- Patch #28986: fixed Incorrect order of PosgreSQL statements.

parent b1143365
...@@ -2474,9 +2474,9 @@ function update_137() { ...@@ -2474,9 +2474,9 @@ function update_137() {
elseif ($GLOBALS['db_type'] == 'pgsql') { elseif ($GLOBALS['db_type'] == 'pgsql') {
$ret[] = update_sql("ALTER TABLE {locales_source} RENAME location TO location_old"); $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("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 NOT NULL");
$ret[] = update_sql("ALTER TABLE {locales_source} ALTER location SET DEFAULT ''"); $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"); $ret[] = update_sql("ALTER TABLE {locales_source} DROP location_old");
} }
return $ret; return $ret;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment