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 Details

    • LocalMigrationResources

      public LocalMigrationResources(MigrationConfig migrationConfig)
      Construct with configuration options.
  • Method Details

    • 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

      @Nonnull public List<LocalMigrationResource> getVersions()
      Return the list of migration resources in version order.