public class MigrationTable extends Object
| Constructor and Description |
|---|
MigrationTable(MigrationConfig config,
Connection connection)
Construct with server, configuration and jdbc connection (DB admin user).
|
| Modifier and Type | Method and Description |
|---|---|
void |
createIfNeeded()
Create the table is it does not exist.
|
boolean |
shouldRun(LocalMigrationResource localVersion,
LocalMigrationResource priorVersion)
Return true if the migration ran successfully and false if the migration failed.
|
int |
size()
Return the number of migrations in the DB migration table.
|
public MigrationTable(MigrationConfig config, Connection connection)
public int size()
public void createIfNeeded() throws SQLException, IOException
SQLExceptionIOExceptionpublic boolean shouldRun(LocalMigrationResource localVersion, LocalMigrationResource priorVersion) throws SQLException
SQLExceptionCopyright © 2016. All rights reserved.