From 4fb66b5118d424b5c84461eeb5f4af20a0e1c74a Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 14 Dec 2017 22:34:16 -0600 Subject: [PATCH] Fix sqlite3 path on windows --- app/Console/Commands/CreateDatabase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/CreateDatabase.php b/app/Console/Commands/CreateDatabase.php index 75422247..33758859 100644 --- a/app/Console/Commands/CreateDatabase.php +++ b/app/Console/Commands/CreateDatabase.php @@ -59,7 +59,7 @@ class CreateDatabase extends Command $mysql_cmd[] = '-p' . $password; } - if ($this->option('reset')) { + if ($this->option('reset') === true) { $cmd = array_merge( $mysql_cmd, ["-e 'DROP DATABASE " . config($dbkey . 'database') . "'"] @@ -84,10 +84,10 @@ class CreateDatabase extends Command { $exec = 'sqlite3'; if ($this->os->isWindowsLike()) { - $exec .= 'sqlite3'; + $exec = 'sqlite3.exe'; } - if ($this->option('reset')) { + if ($this->option('reset') === true) { $cmd = ['rm', '-rf', config($dbkey . 'database')]; $this->runCommand($cmd); }