From 2eb48db4872f22b5bd684db19922ec977ce9f7af Mon Sep 17 00:00:00 2001 From: OverlordQ Date: Wed, 7 Oct 2009 08:47:02 +0000 Subject: [PATCH] * (bug 21030) Fixed schema choices from being overwritten by defining unique field names per driver. --- RELEASE-NOTES | 1 + config/Installer.php | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2f2d34b272..d13dddf9ea 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -546,6 +546,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 20524) Hideuser: Show nice error when trying to block hidden user without hideuser right * (bug 21026) Fixed file redirects on shared repos on non-English client wikis +* (bug 21030) Fixed schema choices from being overwritten by defining unique field names per driver. == API changes in 1.16 == diff --git a/config/Installer.php b/config/Installer.php index 0a3c5237b1..67e390b960 100644 --- a/config/Installer.php +++ b/config/Installer.php @@ -635,8 +635,8 @@ print "
  • Environment check ## Postgres specific: $conf->DBport = importPost( "DBport", "5432" ); - $conf->DBmwschema = importPost( "DBmwschema", "mediawiki" ); $conf->DBts2schema = importPost( "DBts2schema", "public" ); + $conf->DBpgschema = importPost( "DBpgschema", "mediawiki" ); ## SQLite specific $conf->SQLiteDataDir = importPost( "SQLiteDataDir", "" ); @@ -648,8 +648,8 @@ print "
  • Environment check ## DB2 specific: // New variable in order to have a different default port number $conf->DBport_db2 = importPost( "DBport_db2", "50000" ); - $conf->DBmwschema = importPost( "DBmwschema", "mediawiki" ); $conf->DBcataloged = importPost( "DBcataloged", "cataloged" ); + $conf->DBdb2schema = importPost( "DBdb2schema", "mediawiki" ); // Oracle specific $conf->DBprefix_ora = importPost( "DBprefix_ora" ); @@ -823,9 +823,14 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) { ## Postgres specific: $wgDBport = $conf->DBport; - $wgDBmwschema = $conf->DBmwschema; $wgDBts2schema = $conf->DBts2schema; + if( $wgDBtype == 'postgres' ) { + $wgDBmwschema = $conf->DBpgschema; + } elseif ( $wgDBtype == 'ibm_db2' ) { + $wgDBmwschema = $conf->DBdb2schema; + } + if( $conf->DBprefix2 != '' ) { // For MSSQL $wgDBprefix = $conf->DBprefix2; @@ -1612,7 +1617,7 @@ if( count( $errs ) ) {
    -
    +

    The username specified above (at "DB username") will have its search path set to the above schemas, @@ -1655,7 +1660,7 @@ if( count( $errs ) ) { aField( $conf, "DBport_db2", "Database port:" ); ?>

    Select one: