From 8d42f578c19b851e49f4e144966e5102fdee43d5 Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Sat, 13 Jan 2024 21:36:11 +0300 Subject: [PATCH] add confirmation before running the migration --- src/Commands/InstallCommand.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Commands/InstallCommand.php b/src/Commands/InstallCommand.php index 84e5f5ff..6bd82729 100644 --- a/src/Commands/InstallCommand.php +++ b/src/Commands/InstallCommand.php @@ -19,8 +19,10 @@ public function handle(): void $this->info('publishing assets...'); $this->callSilent('vendor:publish', ['--tag' => 'zeus-assets']); - $this->info('running migrations...'); - $this->callSilent('migrate'); + if ($this->confirm('Do you want to run the migration now?', true)) { + $this->info('running migrations...'); + $this->callSilent('migrate'); + } $this->output->success('Zeus Bolt has been Installed successfully'); }