From 936bceba5dada12387796681decfb79d9499275b Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Fri, 9 Feb 2018 17:16:52 -0600 Subject: [PATCH] Add --reset-db flag to phpvms:dev-install command #176 --- app/Console/Commands/DevInstall.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/DevInstall.php b/app/Console/Commands/DevInstall.php index 47c85249..87e81284 100644 --- a/app/Console/Commands/DevInstall.php +++ b/app/Console/Commands/DevInstall.php @@ -11,7 +11,7 @@ use Modules\Installer\Services\ConfigService; */ 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'; /** @@ -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();