Does flyway support conditional execution of a script, per environment?
For example, if I have test data, can I create a test data script folder thats only loaded i
You can use flyway placeholder:
Configure it on your enviroment config.properties:
flyway.placeholders.tableName=MY_TABLE
flyway.placeholders.name='Mr. Test'
Then, put it on your script: INSERT INTO ${tableName} (name) VALUES (${name});
I have used the flyway.locations too, but the placeholders is simpler than locations for simple changes.