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
Schema history gets corrupted during "repair" #2987
Comments
The R file can be anything, but attaching one used for reproduce |
Thanks for spotting this, we will fix this immediately. In the mean time, you can run validate with |
Hi @DoodleBobBuffPants , I am on my develop branch where i have added my new V script. Migration goes succesful.
Is this normal behaviour, that this newer script gets marked as 'DELETED'? EDIT: used version : maven 7.7.2 |
Yes In Flyway V7 we changed repair to mark any missing migration as deleted We would suggest that instead of running |
Follow up. What if there is a corrupted migration to be fixed with repair? How will then the missing migration be treated? |
|
Which version and edition of Flyway are you using?
7.0.4
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-Line
Which database are you using (type & version)?
SQL SERVER 2017
Which operating system are you using?
Windows
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
We saw this in a QA DB that needed to be repaired because of a checksum change on a V file, so we can't migrate without the repair and we can't migrate after the repair.
What did you expect to see?
Been able to migrate after repair
What did you see instead?
Corruption issue
The text was updated successfully, but these errors were encountered: