documentation/Reference/Configuration/Flyway Namespace/Flyway Callbacks Setting.md
Array 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.
String array
["db/callback"]
This can't be set in a config file via Flyway Desktop, although it will be honoured, and it can be configured as an advanced parameter in operations on the Migrations page.
./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_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>