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 +]); } }