Search code examples
flyway

Flyway - Force run repeatable scripts


We have a process that has a repeatable script at the end that never changes. So the checksum does not change. Is there a way to tell Flyway to run it regardless on whether it has run before? Force it to run again.

At the moment I am programmatically alter the file with a unique comment to force it to run. But get tricky when the script is within a Jar.


Solution

  • This sounds like your script should be run as a callback instead, which will give you the desired behavior.