From: Greg Sabino Mullane Date: Sun, 8 Oct 2006 19:28:26 +0000 (+0000) Subject: Add default wgDBmwschema when doing Postgres upgrade, in case it was not in the Local... X-Git-Tag: 1.31.0-rc.0~55574 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=9b6708cb052d1c25eb285c0dde8212411dbf5a25;p=lhc%2Fweb%2Fwiklou.git Add default wgDBmwschema when doing Postgres upgrade, in case it was not in the LocalSettings.php file. --- diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index d85f1ebed6..87913ba9ab 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -859,10 +859,14 @@ function archive($name) { } function do_postgres_updates() { - global $wgDatabase, $wgVersion; + global $wgDatabase, $wgVersion, $wgDBmwschema; $version = "1.7.1"; + # Just in case their LocalSetings.php does not have this: + if ( !isset( $wgDBmwschema )) + $wgDBmwschema = 'mediawiki'; + if ($wgDatabase->tableExists("mediawiki_version")) { $version = "1.8"; } @@ -961,7 +965,7 @@ PGEND; } ## end version 1.7.1 upgrade else { - print "No updates needed"; + print "No updates needed\n"; } return;