From 9b6708cb052d1c25eb285c0dde8212411dbf5a25 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Sun, 8 Oct 2006 19:28:26 +0000 Subject: [PATCH] Add default wgDBmwschema when doing Postgres upgrade, in case it was not in the LocalSettings.php file. --- maintenance/updaters.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; -- 2.20.1