[2.0] Small cleanups
This commit is contained in:
parent
8de151d8ea
commit
d13e94abf7
@ -273,17 +273,17 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
|
||||
*
|
||||
* @param string $database The name of the database to drop.
|
||||
* @return boolean $result
|
||||
* @override
|
||||
*/
|
||||
public function dropDatabase($database = null)
|
||||
{
|
||||
if (is_null($database)) {
|
||||
//TODO: How to deal with this? We need to connect to another database
|
||||
// in order to drop this one!
|
||||
$database = $this->_conn->getDatabase();
|
||||
}
|
||||
$sql = $this->_platform->getDropDatabaseSql($database);
|
||||
|
||||
//$this->_conn->close();
|
||||
|
||||
|
||||
return $this->_executeSql($sql, 'execute');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user