-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Flyway Callbacks and JavaMigrations configured in FlywayConfigurationCustomizer are overwritten by beans of the same type #32070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report, @oliverhenlich.
This looks like a hangover from when Flyway had both Out of interest, why are you mixing |
Thanks @wilkinsona, What I was trying to do was make instances of our It's not blocking me right now, I've worked around it but would be good if it didn't silently overwrite callbacks :) |
Unfortunately, this isn't possible due to the way that
The
Ideally, any I'll flag this for a team meeting so that we can discuss it and figure out what to do. |
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to configure where/how to find the flyway callbacks using the
FlywayConfigurationCustomizer
with something like the following.On debugging why this was not working I saw that
FlywayAutoConfiguration
seems to be overwriting any changes to the list of callbacks that may have been made by aFlywayConfigurationCustomizer
.Starting with the code here FlywayAutoConfiguration.java#L120 it seems that:
Callback
are used to configure flyway.Incidentally, it seems to do this by calling two differently named methods that have exactly the same content
configureCallbacks
andconfigureFlywayCallbacks
.Spring Boot: 2.7.0
The text was updated successfully, but these errors were encountered: