public class DeleteMetadataCallback extends Object implements org.flywaydb.core.api.callback.FlywayCallback
Callback implementation for deleting records from a given metadata table, so that "repeatable" scripts are executed with each migration. Integrate this class in flyway with defining property "flyway.callbacks".
The following configuration must be
as soon as the main flyway configuration is injected in this callback, the "flyway-extension.repeatable.table" is not needed anymore.
| Constructor and Description |
|---|
DeleteMetadataCallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterBaseline(Connection connection) |
void |
afterClean(Connection connection) |
void |
afterEachMigrate(Connection connection,
org.flywaydb.core.api.MigrationInfo migrationInfo) |
void |
afterInfo(Connection connection) |
void |
afterInit(Connection connection) |
void |
afterMigrate(Connection connection) |
void |
afterRepair(Connection connection) |
void |
afterValidate(Connection connection) |
void |
beforeBaseline(Connection connection) |
void |
beforeClean(Connection connection) |
void |
beforeEachMigrate(Connection connection,
org.flywaydb.core.api.MigrationInfo migrationInfo) |
void |
beforeInfo(Connection connection) |
void |
beforeInit(Connection connection) |
void |
beforeMigrate(Connection connection) |
void |
beforeRepair(Connection connection) |
void |
beforeValidate(Connection connection) |
public void beforeClean(Connection connection)
beforeClean in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterClean(Connection connection)
afterClean in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeMigrate(Connection connection)
beforeMigrate in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterMigrate(Connection connection)
afterMigrate in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeEachMigrate(Connection connection, org.flywaydb.core.api.MigrationInfo migrationInfo)
beforeEachMigrate in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterEachMigrate(Connection connection, org.flywaydb.core.api.MigrationInfo migrationInfo)
afterEachMigrate in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeValidate(Connection connection)
beforeValidate in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterValidate(Connection connection)
afterValidate in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeBaseline(Connection connection)
beforeBaseline in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterBaseline(Connection connection)
afterBaseline in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeInit(Connection connection)
beforeInit in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterInit(Connection connection)
afterInit in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeRepair(Connection connection)
beforeRepair in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterRepair(Connection connection)
afterRepair in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeInfo(Connection connection)
beforeInfo in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterInfo(Connection connection)
afterInfo in interface org.flywaydb.core.api.callback.FlywayCallbackCopyright © 2015. All rights reserved.