* Fix r78774 for Oracle and Postgres, broke by method rename
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 23 Dec 2010 20:24:11 +0000 (20:24 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 23 Dec 2010 20:24:11 +0000 (20:24 +0000)
* Get rid of Postgres version check, already handled by PostgresInstaller::submitConnectForm()

includes/db/DatabasePostgres.php
includes/installer/OracleInstaller.php
includes/installer/PostgresInstaller.php

index 96f7eae..dff73e9 100644 (file)
@@ -229,15 +229,6 @@ class DatabasePostgres extends DatabaseBase {
                // If this is the initial connection, setup the schema stuff and possibly create the user
                global $wgDBname, $wgDBuser, $wgDBpassword, $wgDBmwschema, $wgDBts2schema;
 
-               print '<li>Checking the version of Postgres...';
-               $version = $this->getServerVersion();
-               $PGMINVER = '8.1';
-               if ( $version < $PGMINVER ) {
-                       print "<b>FAILED</b>. Required version is $PGMINVER. You have " . htmlspecialchars( $version ) . "</li>\n";
-                       dieout( );
-               }
-               print 'version ' . htmlspecialchars( $this->numeric_version ) . " is OK.</li>\n";
-
                $safeuser = $this->addIdentifierQuotes( $wgDBuser );
                // Are we connecting as a superuser for the first time?
                if ( $superuser ) {
index 4a1d724..2f1dad7 100644 (file)
@@ -152,7 +152,7 @@ class OracleInstaller extends DatabaseInstaller {
                                'callback' => array( $this, 'setupUser' ),
                        )
                );
-               $this->parent->addInstallStepFollowing( "database", $callback );
+               $this->parent->addInstallStep( $callback, 'database' );
        }
 
 
index 72e94e9..aa9d68b 100644 (file)
@@ -113,7 +113,7 @@ class PostgresInstaller extends DatabaseInstaller {
                        'name' => 'pg-commit',
                        'callback' => array( $this, 'commitChanges' ),
                );
-               $this->parent->addInstallStepFollowing( 'interwiki', $callback );
+               $this->parent->addInstallStep( $callback, 'interwiki' );
        }
 
        function setupDatabase() {