I am evaluating Flyway for use in my project. Our current SQL scripts contain placeholders for things like URLs that will have different domain names depending on the environment (dev, qa, prod).
In particular, we may have INSERT statements, such as
INSERT INTO FEED VALUES ('app.${env.token}.company.org/feed1', 'My Feed');
$ {env.token} must be replaced with "dev", "qa" or "prod".
We have about 50 different properties that may require replacement in SQL scripts. All properties are in one or two property files.
Is there a way to complete the Flyway Ant migration task so that it pulls replacement tokens and values ββfrom the properties file? Anything along the lines of the Ant filter task?
source
share