Merge branch 'fix/upgrade-command' into v2

This commit is contained in:
Matthew Penner 2021-08-03 20:40:45 -06:00
commit 3d3df30903

View file

@ -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) {