Skip to content
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 v5 deprecated APIs and settings #2218

axelfontaine opened this issue Nov 27, 2018 · 0 comments

Remove v5 deprecated APIs and settings #2218

axelfontaine opened this issue Nov 27, 2018 · 0 comments


Copy link

axelfontaine commented Nov 27, 2018

All APIs deprecated during Flyway 5.x will be removed. Specifically:


Command line parameter -configFile is removed; use -configFiles instead
Configuration parameter sqlMigrationSuffix is removed; use sqlMigrationSuffixes instead
Error handlers are removed; use statement-level callbacks instead

Java API

Flyway class:

  • All constructors are now private. Use Flyway.configure() instead.
  • All getters and setters for configuration properties are removed. Use corresponding getters and setters on Flyway.getConfiguration()

BaseFlywayCallback class:

  • This abstract base class is removed. Implement interface org.flywaydb.core.api.callback.Callback instead.

FlywayCallback class:

  • isSuppressErrors() is removed. Use Error.isHandled(), Warning.isHandled() instead.
  • setSuppressErrors() is removed. Use Error.setHandled(), Warning.setHandled() instead.

ClassicConfiguration and FluentConfiguration classes:

  • setClassLoader() is removed. Use new Classic/FluentConfiguration(classLoader) instead.
  • setDataSource(..., initSqls) is removed. Use setDataSource() then explicit setInitSql() method instead.

Interfaces MigrationChecksumProvider, MigrationInfoProvider, JdbcMigration, SpringJdbcMigration and abstract classes BaseJdbcMigration , BaseSpringJdbcMigration are removed. Extend JavaMigration or BaseJavaMigration instead.

Abstract class BaseMigrationResolver removed; implement MigrationResolver instead.

Class LegacyCallback removed.

Adapter classes JdbcMigrationExecutor, SpringJdbcMigrationExecutor, JdbcMigrationResolver, SpringJdbcMigrationResolver removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant