Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implement dropDatabase function.

  • Loading branch information...
commit cc50f53a0a0b3548184ab78991170aa76cb26dba 1 parent 1e96fff
@posulliv authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 lib/Doctrine/DBAL/Schema/AkibanServerSchemaManager.php
View
13 lib/Doctrine/DBAL/Schema/AkibanServerSchemaManager.php
@@ -47,7 +47,18 @@ protected function _getPortableTableForeignKeyDefinition($tableForeignKey)
public function dropDatabase($database)
{
- // TODO
+ $params = $this->_conn->getParams();
+ $params["dbname"] = "information_schema";
+ $tmpPlatform = $this->_platform;
+ $tmpConn = $this->_conn;
+
+ $this->_conn = \Doctrine\DBAL\DriverManager::getConnection($params);
+ $this->_platform = $this->_conn->getDatabasePlatform();
+
+ parent::dropDatabase($database);
+
+ $this->_platform = $tmpPlatform;
+ $this->_conn = $tmpConn;
}
public function createDatabase($database)
Please sign in to comment.
Something went wrong with that request. Please try again.