From 83cc7ea0de3d5cde04896a58049f80c66ab44f19 Mon Sep 17 00:00:00 2001 From: Robin Klaassen <13085028+robinklaassen@users.noreply.github.com> Date: Wed, 1 Nov 2023 11:31:48 +0100 Subject: [PATCH] force more artisan commands --- .../Updater/Listeners/ArtisanPostUpdateListener.php | 12 +++++++++--- .../Updater/Listeners/ArtisanPreUpdateListener.php | 4 +++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/Updater/Listeners/ArtisanPostUpdateListener.php b/packages/Updater/Listeners/ArtisanPostUpdateListener.php index f3b38e23..a41610ca 100644 --- a/packages/Updater/Listeners/ArtisanPostUpdateListener.php +++ b/packages/Updater/Listeners/ArtisanPostUpdateListener.php @@ -17,8 +17,14 @@ public function __construct(ExecutorInterface $artisanExecutor) public function handle() { - $this->artisanExecutor->execute('clear-compiled'); - $this->artisanExecutor->execute('migrate --force'); - $this->artisanExecutor->execute('optimize'); + $this->artisanExecutor->execute('clear-compiled', [ +'--force' => true +]); + $this->artisanExecutor->execute('migrate', [ +'--force' => true +]); + $this->artisanExecutor->execute('optimize', [ +'--force' => true +]); } } diff --git a/packages/Updater/Listeners/ArtisanPreUpdateListener.php b/packages/Updater/Listeners/ArtisanPreUpdateListener.php index 5e0f6926..7bbdd38c 100644 --- a/packages/Updater/Listeners/ArtisanPreUpdateListener.php +++ b/packages/Updater/Listeners/ArtisanPreUpdateListener.php @@ -17,6 +17,8 @@ public function __construct(ExecutorInterface $artisanExecutor) public function handle() { - $this->artisanExecutor->execute('optimize:clear'); + $this->artisanExecutor->execute('optimize:clear', [ +'--force' => true +]); } }