Reputation: 3139
There are certain migrations that insert a lot of data into our production database. They slow down the integration tests and are completely not needed during the testing phase. I'd rather not solve this by boilerplate conditionals in SQL.
Is there a way to apply profiles to Flyway scripts and omit chosen migrations when necessary?
Upvotes: 1
Views: 462
Reputation: 35169
You can split them out in a separate directory and configure flyway.locations
to selectively include it.
Upvotes: 3