From 0c3f623d71f8d2073c1b761d3f30729af41a3c46 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 3 Feb 2011 20:47:54 +0000 Subject: [PATCH] Fixup spaces to tabs --- includes/installer/PostgresInstaller.php | 58 ++++++++++++------------ 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/includes/installer/PostgresInstaller.php b/includes/installer/PostgresInstaller.php index 621b81df2e..4a153ec249 100644 --- a/includes/installer/PostgresInstaller.php +++ b/includes/installer/PostgresInstaller.php @@ -325,37 +325,37 @@ class PostgresInstaller extends DatabaseInstaller { $wgDBpassword = $this->getVar( '_InstallPassword' ); } - public function createTables() { + public function createTables() { $this->db = null; $this->useAdmin = false; - $status = $this->getConnection(); - if ( !$status->isOK() ) { - return $status; - } - $this->db->selectDB( $this->getVar( 'wgDBname' ) ); - - if( $this->db->tableExists( 'user' ) ) { - $status->warning( 'config-install-tables-exist' ); - return $status; - } - - $this->db->setFlag( DBO_DDLMODE ); // For Oracle's handling of schema files - $this->db->begin( __METHOD__ ); - - $error = $this->db->sourceFile( $this->db->getSchema() ); - if( $error !== true ) { - $this->db->reportQueryError( $error, 0, '', __METHOD__ ); - $this->db->rollback( __METHOD__ ); - $status->fatal( 'config-install-tables-failed', $error ); - } else { - $this->db->commit( __METHOD__ ); - } - // Resume normal operations - if( $status->isOk() ) { - $this->enableLB(); - } - return $status; - } + $status = $this->getConnection(); + if ( !$status->isOK() ) { + return $status; + } + $this->db->selectDB( $this->getVar( 'wgDBname' ) ); + + if( $this->db->tableExists( 'user' ) ) { + $status->warning( 'config-install-tables-exist' ); + return $status; + } + + $this->db->setFlag( DBO_DDLMODE ); // For Oracle's handling of schema files + $this->db->begin( __METHOD__ ); + + $error = $this->db->sourceFile( $this->db->getSchema() ); + if( $error !== true ) { + $this->db->reportQueryError( $error, 0, '', __METHOD__ ); + $this->db->rollback( __METHOD__ ); + $status->fatal( 'config-install-tables-failed', $error ); + } else { + $this->db->commit( __METHOD__ ); + } + // Resume normal operations + if( $status->isOk() ) { + $this->enableLB(); + } + return $status; + } public function setupPLpgSQL() { $this->useAdmin = TRUE; -- 2.20.1