1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 18:54:03 +00:00

Return status codes in Migrate

This commit is contained in:
lukinovec 2022-10-05 13:56:28 +02:00
parent b76ed4ad08
commit 8c5f33df47

View file

@ -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;
}
}
}