1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-26 02:52:30 +01:00

cmd(upgrade): fix force and seed flags being ignored (#3519)

This commit is contained in:
Matthew Penner 2021-08-03 20:48:34 -06:00 committed by GitHub
parent 1c071b05aa
commit 81c788f524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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