From 81c788f524b81810f10183c86dd636cf8498378f Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Tue, 3 Aug 2021 20:48:34 -0600 Subject: [PATCH] cmd(upgrade): fix force and seed flags being ignored (#3519) --- app/Console/Commands/UpgradeCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/UpgradeCommand.php b/app/Console/Commands/UpgradeCommand.php index db0e23fd4..feb21ec60 100644 --- a/app/Console/Commands/UpgradeCommand.php +++ b/app/Console/Commands/UpgradeCommand.php @@ -68,7 +68,7 @@ class UpgradeCommand extends Command ); } } - + if (is_null($this->option('group'))) { $groupDetails = posix_getgrgid(filegroup('public')); $group = $groupDetails['name'] ?? 'www-data'; @@ -150,8 +150,8 @@ class UpgradeCommand extends Command }); $this->withProgress($bar, function () { - $this->line('$upgrader> php artisan migrate --seed --force'); - $this->call('migrate', ['--seed' => '', '--force' => '']); + $this->line('$upgrader> php artisan migrate --force --seed'); + $this->call('migrate', ['--force' => true, '--seed' => true]); }); $this->withProgress($bar, function () use ($user, $group) {