quarkus icon indicating copy to clipboard operation
quarkus copied to clipboard

Support `ignoreMigrationPatterns` config in Flyway

Open gastaldi opened this issue 2 years ago • 5 comments

Description

As requested in https://github.com/quarkusio/quarkus/pull/27096#discussion_r936069360, Flyway supports configuring certain patterns to ignore migrations during validate and repair. It would be nice to be able to specify that in the Flyway Config.

More info: https://flywaydb.org/documentation/configuration/parameters/ignoreMigrationPatterns

Implementation ideas

Include a quarkus.flyway.ignore-migration-patterns in the FlywayDataSourceRuntimeConfig and create a test for it.

See c31af2a (#27096) for an example

gastaldi avatar Aug 02 '22 22:08 gastaldi

/cc @cristhiank, @geoand, @gsmet

quarkus-bot[bot] avatar Aug 02 '22 22:08 quarkus-bot[bot]

Seems reasonable to me.

geoand avatar Aug 03 '22 04:08 geoand

@tmihalac might be a good one for you.

gsmet avatar Aug 03 '22 07:08 gsmet

@tmihalac might be a good one for you.

Working on it

tmihalac avatar Aug 08 '22 10:08 tmihalac

@gsmet @gastaldi I just want to point out that if you look at the documentation you pointed out to: https://flywaydb.org/documentation/configuration/parameters/ignoreMigrationPatterns

You can see that repeatable and versioned migration types are supported only by the flyway teams product but we are dependent on the community version.

tmihalac avatar Aug 08 '22 10:08 tmihalac