Commit 6b8a5e7b authored by Marco Pivetta's avatar Marco Pivetta

Merge branch 'hotfix/backport-#757-DBAL-1093-to-2.4' into 2.4

parents 18d5b5f9 3d1aab8a
......@@ -127,48 +127,6 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
);
}
/**
* {@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}
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment