Skip to content

Commit 81c788f

Browse files
authored
cmd(upgrade): fix force and seed flags being ignored (pterodactyl#3519)
1 parent 1c071b0 commit 81c788f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Console/Commands/UpgradeCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function handle()
6868
);
6969
}
7070
}
71-
71+
7272
if (is_null($this->option('group'))) {
7373
$groupDetails = posix_getgrgid(filegroup('public'));
7474
$group = $groupDetails['name'] ?? 'www-data';
@@ -150,8 +150,8 @@ public function handle()
150150
});
151151

152152
$this->withProgress($bar, function () {
153-
$this->line('$upgrader> php artisan migrate --seed --force');
154-
$this->call('migrate', ['--seed' => '', '--force' => '']);
153+
$this->line('$upgrader> php artisan migrate --force --seed');
154+
$this->call('migrate', ['--force' => true, '--seed' => true]);
155155
});
156156

157157
$this->withProgress($bar, function () use ($user, $group) {

0 commit comments

Comments
 (0)