Skip to content

When a migration crashes, you can't rollback #1420

@crazynds

Description

@crazynds

Bug description

I had a problem that I forgot to put nullable in a collumn when I have changed it.
Só the firsts two tenants it just worked fine because they didnt have any entry with null, but the third one crashed.
So to rollback it was a pain to do it.

I think it should rollback automatically all tenants it applied the migration or make the rollback easier to do.

Steps to reproduce

Just create a migration that work for the first tenant and crash to the next one.

Expected behavior

It should just rollback the tenants that migrate

Laravel version

12

stancl/tenancy version

latest

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions