When running multiple instances of the app, baselineOnMigrate is not working properly #2243
Which version and edition of Flyway are you using?
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Which database are you using (type & version)?
Which operating system are you using?
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
I'm integrating flyway into an existing spring boot (1.5.13.RELEASE) application. Because I have a NON-EMPTY schema, I would like to skip the already ran scripts, so the only configuration that I've set to flyway is "baselineOnMigrate: true".
What did you expect to see?
Multiple instances of the app are starting and initial (baselined) version of the script is ignored.
What did you see instead?
Multiple instances of the app are starting and it happens that the initial (baselined) version of the script is executed. Please see below:
installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success
Here are some logs:
One of the instances:
The text was updated successfully, but these errors were encountered: