public class DatabaseRegistryUpdater extends Object implements org.flywaydb.core.api.callback.FlywayCallback
The reason this runs BEFORE a migration is to ensure that any new metadata fields are FIRST added to our registries, so that the migrations can make use of those new metadata fields, etc.
However, there is one exception. If this is a "fresh install" of DSpace, we'll need to wait until the necessary database tables are created. In that scenario we will load registries AFTER the initial migration.
| Constructor and Description |
|---|
DatabaseRegistryUpdater() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterClean(Connection connection) |
void |
afterEachMigrate(Connection connection,
org.flywaydb.core.api.MigrationInfo info) |
void |
afterInfo(Connection connection) |
void |
afterInit(Connection connection) |
void |
afterMigrate(Connection connection) |
void |
afterRepair(Connection connection) |
void |
afterValidate(Connection connection) |
void |
beforeClean(Connection connection) |
void |
beforeEachMigrate(Connection connection,
org.flywaydb.core.api.MigrationInfo info) |
void |
beforeInfo(Connection connection) |
void |
beforeInit(Connection connection) |
void |
beforeMigrate(Connection connection) |
void |
beforeRepair(Connection connection) |
void |
beforeValidate(Connection connection) |
public void afterClean(Connection connection)
afterClean in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterEachMigrate(Connection connection, org.flywaydb.core.api.MigrationInfo info)
afterEachMigrate in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterInfo(Connection connection)
afterInfo in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterInit(Connection connection)
afterInit in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterMigrate(Connection connection)
afterMigrate in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterRepair(Connection connection)
afterRepair in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void afterValidate(Connection connection)
afterValidate in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeClean(Connection connection)
beforeClean in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeEachMigrate(Connection connection, org.flywaydb.core.api.MigrationInfo info)
beforeEachMigrate in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeInfo(Connection connection)
beforeInfo in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeInit(Connection connection)
beforeInit in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeMigrate(Connection connection)
beforeMigrate in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeRepair(Connection connection)
beforeRepair in interface org.flywaydb.core.api.callback.FlywayCallbackpublic void beforeValidate(Connection connection)
beforeValidate in interface org.flywaydb.core.api.callback.FlywayCallbackCopyright © 2014 DuraSpace. All Rights Reserved.