public class MigrationManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MigrationManager.Mode |
| Constructor and Description |
|---|
MigrationManager(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(MigrationManager.Mode migrationMode)
Execute the migrations
|
void |
register(Migrator migrator)
Register a new migrator in the manager
|
public MigrationManager(DataSource dataSource)
public void register(Migrator migrator)
migrator - The migrator to registerpublic void execute(MigrationManager.Mode migrationMode) throws Exception
migrationMode - The migration mode to useException - If the migration failsCopyright © 2018. All rights reserved.