Skip to content

Commit

Permalink
Add --reset-db flag to phpvms:dev-install command #176
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio committed Feb 9, 2018
1 parent d94294e commit 936bceb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Console/Commands/DevInstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
class DevInstall extends BaseCommand
{
protected $signature = 'phpvms:dev-install';
protected $signature = 'phpvms:dev-install {--reset-db}';
protected $description = 'Run a developer install and run the sample migration';

/**
Expand All @@ -20,7 +20,9 @@ class DevInstall extends BaseCommand
*/
public function handle()
{
$this->rewriteConfigs();
if(!$this->option('reset-db')) {
$this->rewriteConfigs();
}

# Reload the configuration
\App::boot();
Expand Down

0 comments on commit 936bceb

Please sign in to comment.