-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document using --skip-failing on tenants:migrate #73
Comments
This could be configurable |
Hi. This is not a bug. The standard behavior works as it should. If you have tenants that don't have a database yet, don't run Ideally, you'd run it for each tenant separately from the app. I can see this being an issue with deployments. Tenants existing without a DB but I think the best thing to do here would be adding a flag to But, note that the Feel free to send a PR. |
Thanks for your response. Sorry for filing this issue as a bug, was not sure where to put in. Yes, I think it's a good idea to add |
Hi,
First, thank you for creating this awesome package!
Describe the bug
In our case when a tenant is created a record will be added to the Tenant table but we need to postpone the creation of the tenant database as it requires approval (we have managed this behavior using additional event instead of
TenantCreated
, thanks for the flexibility of this package). Thus, there will be any tenant records which the databases haven't been created yet, this causes an issue if we have additional migration for tenants, when runningartisan tenants:migrate
it will raiseTenantDatabaseDoesNotExistException
.Steps to reproduce
Specifically for my case above, running
artisan tenants:migrate
will raiseTenantDatabaseDoesNotExistException
.Expected behavior
It may show just a message that the database doesn't exist and continue the migration for the rest of the other tenants.
Your setup
The text was updated successfully, but these errors were encountered: