Skip to content

Commit

Permalink
Fix sqlite3 path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio committed Dec 15, 2017
1 parent 80c6955 commit 4fb66b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Console/Commands/CreateDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function create_mysql($dbkey)
$mysql_cmd[] = '-p' . $password;
}

if ($this->option('reset')) {
if ($this->option('reset') === true) {
$cmd = array_merge(
$mysql_cmd,
["-e 'DROP DATABASE " . config($dbkey . 'database') . "'"]
Expand All @@ -84,10 +84,10 @@ protected function create_sqlite($dbkey)
{
$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);
}
Expand Down

0 comments on commit 4fb66b5

Please sign in to comment.