From 4f136a310e72f377d463471674113d8f7587b021 Mon Sep 17 00:00:00 2001 From: Alf Drollinger <40421928+adrolli@users.noreply.github.com> Date: Thu, 7 Mar 2024 08:58:37 +0100 Subject: [PATCH] Builder InstallCommand (#384) Co-authored-by: KimSpeer <93331309+Kim-the-Diamond@users.noreply.github.com> Co-authored-by: Kim-the-Diamond --- packages/builder/src/Commands/InstallCommand.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/builder/src/Commands/InstallCommand.php b/packages/builder/src/Commands/InstallCommand.php index 0e01d9ed3..3bf6eaac3 100644 --- a/packages/builder/src/Commands/InstallCommand.php +++ b/packages/builder/src/Commands/InstallCommand.php @@ -83,15 +83,13 @@ public function publish_configuration(): void public function publish_migrations(): void { - $confirmed = confirm('Do you wish to publish the migrations?', true); - if ($confirmed) { - if (Schema::hasTable('items')) { - warning('The items table already exists. The migrations will not be published.'); - } elseif (confirm('Do you wish to publish the migrations?', true)) { - info('Publishing Builder Migrations...'); - $this->callSilent('vendor:publish', ['--tag' => 'builder-migrations']); - } + if (Schema::hasTable('items')) { + warning('The items table already exists. The migrations will not be published.'); + } elseif (confirm('Do you wish to publish the migrations?', true)) { + info('Publishing Builder Migrations...'); + $this->callSilent('vendor:publish', ['--tag' => 'builder-migrations']); } + } public function run_migrations(): void