public class MigrationManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected GlobalContext |
context |
protected List<MigrationTask> |
migrators |
| Constructor and Description |
|---|
MigrationManager(GlobalContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
migrate(Version from,
Version to)
Runs all the migration tasks registered to migrate
|
void |
register(MigrationTask migrationTask)
Register a new migration task
|
protected final GlobalContext context
protected List<MigrationTask> migrators
public MigrationManager(GlobalContext context)
public void register(MigrationTask migrationTask)
migrationTask - the task to be registeredCopyright © 2019. All rights reserved.