-
Notifications
You must be signed in to change notification settings - Fork 46
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 out of order migrations #29
Comments
So sorry for late responding.
It's interesting case which I've not thought so far. Could you explain more specifically about the use case? |
Yep, so to elaborate on the hotfix example. Consider the following timeline. Release goes to production with a large table Development has already started and changes have been applied for new tables Then when users complain of slowness, or a critical bug is found. Then a hotfix is required for production. But what version number do we choose for the hotfix? If we choose 2:
Then when we merge the hotfix back into the development environment then we have a clash between So what if we anticipate the hotfix version in develop and choose 4?
Then the development environment works. But then there's a problem when we go to release these changes to production. The Version is now 4, migrations So the alternative is to apply the hotfix to the development environment as you said, then apply all those changes to production. This requires the migrations in the development environment to be backwards compatible with the production app code, and in a production ready state. Having the flexibility here to apply only the hotfix to production and the remaining migrations at the appropriate time would be beneficial as it relives the burden of testing and verifying the out of scope migration scripts. |
Hi, any update on this? I have other improvements in my fork that I think the wider community will benefit from. I think it's best for the community if these improvements are available at the "source", avoiding unnecessary fragmentation. Do you have concerns with the implementation? Or do you need help maintaining this project? |
What
Similar to FlywayDB outOfOrder option.
Why
Flexibility to apply a hotfix to production, then cherry-pick the migration back to development environments which are already ahead of production.
The text was updated successfully, but these errors were encountered: