mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:14:04 +00:00
Return status codes in Migrate
This commit is contained in:
parent
b76ed4ad08
commit
8c5f33df47
1 changed files with 4 additions and 0 deletions
|
|
@ -57,10 +57,14 @@ class Migrate extends MigrateCommand
|
||||||
|
|
||||||
event(new DatabaseMigrated($tenant));
|
event(new DatabaseMigrated($tenant));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return 0;
|
||||||
} catch (TenantDatabaseDoesNotExistException|QueryException $th) {
|
} catch (TenantDatabaseDoesNotExistException|QueryException $th) {
|
||||||
if (! $this->option('skip-failing')) {
|
if (! $this->option('skip-failing')) {
|
||||||
throw $th;
|
throw $th;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue