mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
BUGFIX: Fixed MSSQLDatabase::dropDatabase()
This commit is contained in:
parent
efb03701ca
commit
acc2d7f531
@ -240,8 +240,9 @@ class MSSQLDatabase extends Database {
|
|||||||
* Use with caution.
|
* Use with caution.
|
||||||
*/
|
*/
|
||||||
public function dropDatabase() {
|
public function dropDatabase() {
|
||||||
|
$db = $this->database;
|
||||||
$this->selectDatabase('master');
|
$this->selectDatabase('master');
|
||||||
$this->query("DROP DATABASE \"$this->database\"");
|
$this->query("DROP DATABASE \"$db\"");
|
||||||
$this->active = false;
|
$this->active = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user