Package org.javalite.db_migrator
Class MigrationManager
java.lang.Object
org.javalite.db_migrator.MigrationManager
-
Constructor Summary
ConstructorDescriptionMigrationManager(org.apache.maven.project.MavenProject mavenProject, String migrationLocation, String url)
MigrationManager(org.apache.maven.project.MavenProject mavenProject, String migrationLocation, String url, Properties mergeProperties)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns pending migrations.void
Migrates the database to the latest version, enabling migrations if necessary.
-
Constructor Details
-
MigrationManager
public MigrationManager(org.apache.maven.project.MavenProject mavenProject, String migrationLocation, String url) throws SQLException- Throws:
SQLException
-
MigrationManager
public MigrationManager(org.apache.maven.project.MavenProject mavenProject, String migrationLocation, String url, Properties mergeProperties) throws SQLException- Throws:
SQLException
-
-
Method Details
-
getPendingMigrations
Returns pending migrations.- Returns:
- a sorted set of pending migrations
-
migrate
Migrates the database to the latest version, enabling migrations if necessary. -
createSchemaVersionTableIfDoesNotExist
public void createSchemaVersionTableIfDoesNotExist()
-