PostreSQL: DatabaseBase constructor cleanups
Change I29b79a3c1bb2b5e51c1c8f5e04cd08c71e0662a3 rendered it uninstallable on PostgreSQL. Make the corresponding API changes to PostgreSQL installer. Bug: T90288 Change-Id: I2019893ad705d99f3dbbce13690cd808cfb71d4a
This commit is contained in:
parent
f8207aeb17
commit
1fd9f18d13
1 changed files with 7 additions and 5 deletions
|
|
@ -262,11 +262,13 @@ class PostgresInstaller extends DatabaseInstaller {
|
|||
$status = Status::newGood();
|
||||
foreach ( $dbs as $db ) {
|
||||
try {
|
||||
$conn = new DatabasePostgres(
|
||||
$this->getVar( 'wgDBserver' ),
|
||||
$user,
|
||||
$password,
|
||||
$db );
|
||||
$p = array(
|
||||
'host' => $this->getVar( 'wgDBserver' ),
|
||||
'user' => $user,
|
||||
'password' => $password,
|
||||
'dbname' => $db
|
||||
);
|
||||
$conn = DatabaseBase::factory( 'postgres', $p );
|
||||
} catch ( DBConnectionError $error ) {
|
||||
$conn = false;
|
||||
$status->fatal( 'config-pg-test-error', $db,
|
||||
|
|
|
|||
Loading…
Reference in a new issue