Fix drop database command
This commit is contained in:
@@ -62,7 +62,7 @@ class CreateDatabase extends Command
|
|||||||
if ($this->option('reset') === true) {
|
if ($this->option('reset') === true) {
|
||||||
$cmd = array_merge(
|
$cmd = array_merge(
|
||||||
$mysql_cmd,
|
$mysql_cmd,
|
||||||
["-e 'DROP DATABASE " . config($dbkey . 'database') . "'"]
|
["-e 'DROP DATABASE IF EXISTS" . config($dbkey . 'database') . "'"]
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->runCommand($cmd);
|
$this->runCommand($cmd);
|
||||||
|
|||||||
Reference in New Issue
Block a user