Skip to content

Commit

Permalink
Merge pull request #240 from lara-zeus/confirm-migration
Browse files Browse the repository at this point in the history
add confirmation before running the migration
  • Loading branch information
atmonshi authored Jan 13, 2024
2 parents 22b078e + 8d42f57 commit 3e50640
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 3e50640

Please sign in to comment.