Execute migration in transaction #1324
gleb-chipiga
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Hey @gleb-chipiga, I think it's hard to achieve "atomic migration" because not all database engine support it. Please check previous discussion at #1059 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hey @gleb-chipiga, tracking issue #1378 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Motivation
I think that in case of an error during the migration, it will be useful to automatically restore the database to a previous consistent state. Thus, a failed migration will not affect the operation of the application.
Proposed Solutions
To do this, we need to run the migration and update the seaql_migrations table in a transaction.
Beta Was this translation helpful? Give feedback.
All reactions