Comma-separated list of fully qualified class names of Callback implementations to use to hook into the Flyway lifecycle, or packages to scan for these classes. Ensure the class or package is available on the classpath (see Adding to the classpath).
Note: SQL callbacks matching the correct name pattern are loaded from locations (see Callbacks). This configuration parameter is only used for loading java callbacks. To disable loading sql callbacks, see skipDefaultCallbacks.
db/callback
./flyway -callbacks="my.callback.FlywayCallback,my.package.to.scan" info
flyway.callbacks=my.callback.FlywayCallback,my.package.to.scan
FLYWAY_CALLBACKS=my.callback.FlywayCallback,my.package.to.scan
Flyway.configure()
.callbacks("my.callback.FlywayCallback", "my.package.to.scan")
.load()
flyway {
callbacks = ['my.callback.FlywayCallback', 'my.package.to.scan']
}
<configuration>
<callbacks>my.callback.FlywayCallback,my.package.to.scan</callbacks>
</configuration>