Options

Is baselineOnMigrate=true ignored when one of the schemas specified is not existing in the database?

mpollompollo Posts: 2 New member
edited October 18, 2023 10:41AM in Flyway (General Discussion)
I executed a migration (version 9.22.0) where I specified baselineOnMigrate=true, in an existing SQL Server database, where Flyway was not used before. In the schemas specified I had one schema that didn't exist yet. The result was that Flyway ran all the deployment scripts. I didn't expect this. I expected the database to be baselined. 

I ran the same migration using older Flyway versions (7.15, 8.3) and the database got baselined, as I expected.

What should be the correct behaviour? In the documentation I could not find anything related a missing schema and ignoring baselineOnMigrate=true.
Tagged:

Answers

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file