Package io.ebean.migration.runner
Class LocalMigrationResources
- java.lang.Object
-
- io.ebean.migration.runner.LocalMigrationResources
-
public class LocalMigrationResources extends Object
Loads the DB migration resources and sorts them into execution order.
-
-
Constructor Summary
Constructors Constructor Description LocalMigrationResources(MigrationConfig migrationConfig)Construct with configuration options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<LocalMigrationResource>getVersions()Return the list of migration resources in version order.booleanreadInitResources()Read the init migration resources (usually only 1) returning true if there are versions.booleanreadResources()Read all the migration resources (SQL scripts) returning true if there are versions.
-
-
-
Constructor Detail
-
LocalMigrationResources
public LocalMigrationResources(MigrationConfig migrationConfig)
Construct with configuration options.
-
-
Method Detail
-
readInitResources
public boolean readInitResources()
Read the init migration resources (usually only 1) returning true if there are versions.
-
readResources
public boolean readResources()
Read all the migration resources (SQL scripts) returning true if there are versions.
-
getVersions
public List<LocalMigrationResource> getVersions()
Return the list of migration resources in version order.
-
-