-
Notifications
You must be signed in to change notification settings - Fork 5
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
Dry run migrations. #50
Comments
So awesome to see this presented as a possibility after our talk yesterday. I'll share what I wrote there:
Although I am guessing technically this would only be possible incrementally with each currently unrun migration file - it would be insanely great if it could output what the final diffs would be after all migrations something like (example of edit column, delete column, and insert column only others would need thought out): UserTable:
I honestly think something like this would be extremely well received and attract a lot of people to this tech if it could be figured out. |
Is this considered? Would love to have such feature. Just to see all queries that would be executed before I run them. @shane-js Like your stuff as well but just able to see what will be executed in SQL would be amazing. |
This could work for databases that support transactional DDL. Run the command and rollback, while logging what ran. For others, not sure yet, maybe setup a shadow/in-memory database to run against. Maybe just a temporary schema on the existing one. |
Hey 👋
What if we could dry-run migrations?
The text was updated successfully, but these errors were encountered: