Skip to content
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

Support for Atomic migrations #23

Open
bwjohnson-ss opened this issue May 21, 2019 · 2 comments
Open

Support for Atomic migrations #23

bwjohnson-ss opened this issue May 21, 2019 · 2 comments

Comments

@bwjohnson-ss
Copy link

Would it be possible to add an option to make migrations atomic? While developing my migration I sometimes make mistakes, and when this happens the DB fails part way through leaving the schema/data in an inconsistent state. It would be really helpful if we could rollback a migration if it fails in the middle.

@DavidHuie
Copy link
Owner

We already perform migrations within a transaction, so for DBs that support transactional DDL changes (Postgres), migrations are already atomic. I'm assuming you need that feature for a different DB?

@bwjohnson-ss
Copy link
Author

Yeah, I'm using mysql.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants