Fix drop database command

This commit is contained in:
Nabeel Shahzad
2017-12-17 12:44:23 -06:00
parent 939882589c
commit 0fdafdec0f

View File

@@ -62,7 +62,7 @@ class CreateDatabase extends Command
if ($this->option('reset') === true) {
$cmd = array_merge(
$mysql_cmd,
["-e 'DROP DATABASE " . config($dbkey . 'database') . "'"]
["-e 'DROP DATABASE IF EXISTS" . config($dbkey . 'database') . "'"]
);
$this->runCommand($cmd);