How can we help you today? How can we help you today?

Flyway repair should not update check-sum of repeatable migrations

Flyway repair updates checksum for all the records in schema history where it finds a checksum mismatch including Repeatable migrations.

While this behaviour is correct for version migrations.
Having this behaviour for repeatable migration leads to the latest checksums being applied in the existing schema_history entries, as a result these repeatable migrations do not get executed on the next invocation of Migrate
Repeatable migrations should not have this behaviour, for repeatable migrations only the failed entry should be removed as part of Repair operation, the check-sum of existing records should not be affected.

Aliasgar
0

Add comment

Please sign in to leave a comment.