Replies: 1 comment 1 reply
-
like with https://laravel.com/docs/10.x/migrations#squashing-migrations? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While using laravel I have noticed over time that when processing a batch of migrations, the ddl is being processed in individual transactions which leads to inconsistent rollbacks (if any).
Would it make sense to process all of the migrations in a batch within a single transaction? It would ensure that if any of the ddl in one of the migrations causes a full rollback of entire batch. Does this already work this way in non-development
APP_ENV
?Just a thought so that the database can stay more consistent if migrations result in exceptions.
Beta Was this translation helpful? Give feedback.
All reactions