Callbacks

Description

Comma-separated list of fully qualified class names of Callback implementations to use to hook into the MigrateDB 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.

Default

db/callback

Usage

Command line

./migratedb -callbacks="my.callback.MigrateDBCallback" info

Configuration File

migratedb.callbacks=my.callback.MigrateDBCallback

Environment Variable

MIGRATEDB_CALLBACKS=my.callback.MigrateDBCallback

API

MigrateDb.configure()
    .callbacks("my.callback.MigrateDBCallback")
    .load()