// 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 ) {
'callback' => array( $this, 'setupUser' ),
)
);
- $this->parent->addInstallStepFollowing( "database", $callback );
+ $this->parent->addInstallStep( $callback, 'database' );
}
'name' => 'pg-commit',
'callback' => array( $this, 'commitChanges' ),
);
- $this->parent->addInstallStepFollowing( 'interwiki', $callback );
+ $this->parent->addInstallStep( $callback, 'interwiki' );
}
function setupDatabase() {