Given an existing database that was setup using Flyway, and I want to migrate this database to the latest version of my RDBMS (ex. Postgres 9.2->9.3).
If the database vendor changes something in its API and one of my already run migration now produces an error, I will not be able to setup new development databases with version 9.3 using the same migration scripts. I will have to modify the failing migration script(s).
Then, if I upgrade my production database to postgres 9.3, and try to run some new migration, then the existing production database won't allow me to migrate because of checksum mismatches for the migration scripts that were modified.
What's the best approach to address this situation? The only way I see presently is to manually change the checksum values in the schema_version table for production database.