Set flyway script locations with FlywayConfigurationCustomizer

23 Views Asked by At

I added a bean as described in https://quarkus.io/guides/flyway#customizing-flyway to customize the location of migrations scripts.

@Singleton
public static class MyCustomizer implements FlywayConfigurationCustomizer {
    @Override
    public void customize(FluentConfiguration configuration) {
        configuration.locations("db/migration", "otherlocation/migration");
    }
}

It runs the bean but it seems like the config is overridden afterwards?

Is it even possible to change the scripts locations this way? Has anyone done this?

0

There are 0 best solutions below