-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Remove cleanOnValidationError
config in Flyway
#44912
Conversation
Starting in Flyway 11.0.0 (see https://documentation.red-gate.com/flyway/release-notes-and-older-versions/release-notes-for-flyway-engine), the `cleanOnValidationError` function and configuration has been removed. An error will be thrown if this feature is configured. Therefore it is better to remove this configuration from Quarkus so applications using it would fail as well (instead of deprecating it)
- This removes the `quarkus.flyway.clean-on-validation-error`. See quarkusio/quarkus#44912
🎊 PR Preview 6a487f0 has been successfully built and deployed to https://quarkus-pr-main-44912-preview.surge.sh/version/main/guides/
|
Status for workflow
|
Status for workflow
|
|
- This removes the `quarkus.flyway.clean-on-validation-error`. See quarkusio/quarkus#44912
I wonder if it's not a bit premature to drop the configuration property. Quarkus won't fail if the property doesn't exist, it will just log a warning - which is easy to miss. I wonder if we should deprecate the property instead, at least for a few versions and let it be a hard fail on the Flyway side. At least until they completely drop the method we are using (my understanding is that the code compiles but will throw an error for now). |
What would be the benefit? |
@gsmet I pondered about that, but because setting the configuration fails the app startup, I don't think it's safe to have it around anymore |
Well, is it safer to completely ignore it and that the user is not aware at all that the config property is not doing anything anymore? Because between this PR and the update recipe, the user has absolutely no chance to figure out this option is not available anymore. My personal conviction is that we should at least have a release where we have the big failure before dropping it so that people have a chance to notice and adjust by themselves/find a workaround. Now maybe I'm being too cautious and this config property is not critical enough but with data, you need to be extra safe. |
I am not sure, IMHO deprecating the config property would give a false illusion that the feature still works and the user can keep using it, which is no longer true.
I am hoping that the Migration Guide would let them know about it: https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.18#cleanonvalidationerror-configuration-removed |
That's my thinking as well |
Starting in Flyway 11.0.0 (see https://documentation.red-gate.com/flyway/release-notes-and-older-versions/release-notes-for-flyway-engine), the
cleanOnValidationError
function and configuration has been removed.An error will be thrown if this feature is configured.
Therefore it is better to remove this configuration from Quarkus so applications using it would fail as well (instead of deprecating it).