public class MigrationManager extends Object
Constructor and Description |
---|
MigrationManager(String migrationLocation) |
Modifier and Type | Method and Description |
---|---|
void |
createSchemaVersionTable() |
protected DatabaseType |
determineDatabaseType() |
protected List<String> |
getAppliedMigrationVersions() |
List<Migration> |
getPendingMigrations()
Returns pending migrations.
|
void |
migrate(org.apache.maven.plugin.logging.Log log,
String encoding)
Migrates the database to the latest version, enabling migrations if necessary.
|
boolean |
validate()
Validates whether the database is currently up-to-date.
|
protected boolean |
versionTableExists() |
public MigrationManager(String migrationLocation) throws SQLException
SQLException
public boolean validate()
public List<Migration> getPendingMigrations()
public void migrate(org.apache.maven.plugin.logging.Log log, String encoding)
protected DatabaseType determineDatabaseType() throws SQLException
SQLException
protected boolean versionTableExists()
public void createSchemaVersionTable()
Copyright © 2020 JavaLite. All rights reserved.