Things to avoid when troubleshooting Flyway migration issues

The following should never be done to address Flyway issues:

  • Never change existing migration files.
  • Never delete migrations.
  • Never add additional custom migrations.
  • Never manually change SCHEMA_VERSION table.

In certain situations when the previous attempt to fix migrations already violated the above rules, doing these changes again to bring the system back to its expected state may be inevitable.