How to ignore placeholder expressions for Flyway?
This can be done by splitting $ and { in the expression:
insert into test_data (value) values ('$' || '{Email}')
You can change the value of the placeholder suffix or prefix to a different value and you should be OK.
try this properties:
final var flyway = Flyway.configure()
.dataSource(DataSourceProvider.getInstanceDataSource(instance.getInstanceId()))
.locations(MIGRATION_PATH + "instance_db")
.outOfOrder(true)
.table("schema_version")
.validateOnMigrate(false)
.placeholderReplacement(false)
.load();