From 0fdafdec0fb0f010c2b876d75cbc6fe19ccab0e4 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sun, 17 Dec 2017 12:44:23 -0600 Subject: [PATCH] Fix drop database command --- app/Console/Commands/CreateDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/CreateDatabase.php b/app/Console/Commands/CreateDatabase.php index 33758859..83cffe3e 100644 --- a/app/Console/Commands/CreateDatabase.php +++ b/app/Console/Commands/CreateDatabase.php @@ -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);