From 4a603c7a711f9399dbb03b5b88b8ecce8c41df84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steve=20M=C3=BCller?= Date: Fri, 26 Dec 2014 19:26:24 +0100 Subject: [PATCH] fix creating and dropping database on PostgreSQL --- .../DBAL/Schema/PostgreSqlSchemaManager.php | 42 ------------------- 1 file changed, 42 deletions(-) diff --git a/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php b/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php index 4b4ef2d9030..b711f8049a5 100644 --- a/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php +++ b/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php @@ -129,48 +129,6 @@ protected function _getPortableTableForeignKeyDefinition($tableForeignKey) ); } - /** - * {@inheritdoc} - */ - public function dropDatabase($database) - { - $params = $this->_conn->getParams(); - $params["dbname"] = "postgres"; - $tmpPlatform = $this->_platform; - $tmpConn = $this->_conn; - - $this->_conn = \Doctrine\DBAL\DriverManager::getConnection($params); - $this->_platform = $this->_conn->getDatabasePlatform(); - - parent::dropDatabase($database); - - $this->_conn->close(); - - $this->_platform = $tmpPlatform; - $this->_conn = $tmpConn; - } - - /** - * {@inheritdoc} - */ - public function createDatabase($database) - { - $params = $this->_conn->getParams(); - $params["dbname"] = "postgres"; - $tmpPlatform = $this->_platform; - $tmpConn = $this->_conn; - - $this->_conn = \Doctrine\DBAL\DriverManager::getConnection($params); - $this->_platform = $this->_conn->getDatabasePlatform(); - - parent::createDatabase($database); - - $this->_conn->close(); - - $this->_platform = $tmpPlatform; - $this->_conn = $tmpConn; - } - /** * {@inheritdoc} */