Skip to content

Is a migration script wrapped inside a transaction? #3774

Answered by ryands17
AviBueno asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @AviBueno 👋
Currently migrations are not wrapped inside a transaction, so if you break halfway, you would be left with an intermediate state, but if you run migrate again, it will start where it left from so the already performed steps would not be re-applied.

Also wrapping migrations in a transaction is considered in the future, but it's currently not implemented.

Replies: 3 comments 18 replies

Comment options

You must be logged in to vote
15 replies
@tomhoule
Comment options

@ruohola
Comment options

@tomhoule
Comment options

@ruohola
Comment options

@revero-doug
Comment options

Answer selected by AviBueno
Comment options

You must be logged in to vote
2 replies
@why-el
Comment options

@aseemk
Comment options

Comment options

You must be logged in to vote
1 reply
@aseemk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
10 participants