From 8c5f33df47b37b3f185b6202c34669326e6d0944 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Wed, 5 Oct 2022 13:56:28 +0200 Subject: [PATCH] Return status codes in Migrate --- src/Commands/Migrate.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Commands/Migrate.php b/src/Commands/Migrate.php index fed6cc67..1f03fe95 100644 --- a/src/Commands/Migrate.php +++ b/src/Commands/Migrate.php @@ -57,10 +57,14 @@ class Migrate extends MigrateCommand event(new DatabaseMigrated($tenant)); }); + + return 0; } catch (TenantDatabaseDoesNotExistException|QueryException $th) { if (! $this->option('skip-failing')) { throw $th; } + + return 1; } } }