public class DatabaseRegistryUpdater extends Object implements org.flywaydb.core.api.callback.FlywayCallback
The reason this runs AFTER all migrations is that the RegistryLoader and MetadataImporter now depend on Hibernate and Hibernate cannot be initialized until the Database is fully migrated.
If a migration needs to use on one or more registry values, there are two options:
| Constructor and Description |
|---|
DatabaseRegistryUpdater() |
| 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 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 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 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 © 2016 DuraSpace. All rights reserved.