Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flyway - Force run repeatable scripts

Tags:

flyway

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.

like image 946
Stephen Avatar asked Mar 10 '23 21:03

Stephen


1 Answers

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

like image 174
Axel Fontaine Avatar answered Apr 26 '23 07:04

Axel Fontaine