Skip to content

Commit 76eb5ea

Browse files
committed
Enable existing --graceful flag
1 parent c69daca commit 76eb5ea

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Commands/MigrateCommandExtension.php

+1-7
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,7 @@ public function handle(): int
2727
return $this->call(MutexMigrateCommand::class, $this->getCommandOptions());
2828
} catch (DatabaseCacheTableNotFoundException $e) {
2929
if ($this->option(MutexMigrateCommand::OPTION_MUTEX)) {
30-
if ($this->option('graceful')) {
31-
$this->components->warn($e->getMessage());
32-
33-
return self::SUCCESS;
34-
}
35-
36-
return self::FAILURE;
30+
return $this->options('graceful') ? self::SUCCESS : self::FAILURE;
3731
} elseif ($this->option(MutexMigrateCommand::OPTION_MUTEX_GRACEFUL)) {
3832
$this->components->warn('Falling back to a standard migration');
3933
}

0 commit comments

Comments
 (0)