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

Removing broken migrations #156

Open
psztoch opened this issue Jun 21, 2022 · 1 comment
Open

Removing broken migrations #156

psztoch opened this issue Jun 21, 2022 · 1 comment

Comments

@psztoch
Copy link

psztoch commented Jun 21, 2022

It may happen many times that a version with a damaged migration will be released.
If we improve the migration, on a few systems we may have a conflict with an incompatible md5 checksum - this is sometimes normal.
But it is also very tedious.

What do you think that if a situation such as a checksum mismatch is detected, the <bad_md5> .cancel.descr.sql file is searched and run, which will automatically roll back such a damaged migration.
If the file is not found, a migration error will occur as now and the migration will be aborted.

@rickbergfalk
Copy link
Owner

I don't really have much of an opinion on how to deal with this issue. I personally don't use the checksum functionality.

Then again I also treat migrations as immutable. If a change needs to happen its always written as another up/do migration, and I don't really bother with the down/undo scripts.

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