Add default wgDBmwschema when doing Postgres upgrade, in case it was not in the Local...
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 8 Oct 2006 19:28:26 +0000 (19:28 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 8 Oct 2006 19:28:26 +0000 (19:28 +0000)
maintenance/updaters.inc

index d85f1eb..87913ba 100644 (file)
@@ -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;