r16873 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r16872‎ | r16873 | r16874 >
Date:19:28, 8 October 2006
Author:greg
Status:old
Tags:
Comment:
Add default wgDBmwschema when doing Postgres upgrade, in case it was not in the LocalSettings.php file.
Modified paths:
  • /trunk/phase3/maintenance/updaters.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/updaters.inc
@@ -859,10 +859,14 @@
860860 }
861861
862862 function do_postgres_updates() {
863 - global $wgDatabase, $wgVersion;
 863+ global $wgDatabase, $wgVersion, $wgDBmwschema;
864864
865865 $version = "1.7.1";
866866
 867+ # Just in case their LocalSetings.php does not have this:
 868+ if ( !isset( $wgDBmwschema ))
 869+ $wgDBmwschema = 'mediawiki';
 870+
867871 if ($wgDatabase->tableExists("mediawiki_version")) {
868872 $version = "1.8";
869873 }
@@ -961,7 +965,7 @@
962966 } ## end version 1.7.1 upgrade
963967
964968 else {
965 - print "No updates needed";
 969+ print "No updates needed\n";
966970 }
967971
968972 return;