ebean-orm / ebean-migration

DB Migration runner (similar to Flyway) which can be used standalone or with Ebean (run migrations on EbeanServer start)
Apache License 2.0
9 stars 5 forks source link

Missing "checkState" methods #30

Closed thibaultmeyer closed 7 years ago

thibaultmeyer commented 7 years ago

Is it possible to add two missing checkState methods ? Like "run", it would be useful to have

Actual behavior

final MigrationRunner migrationRunner = new MigrationRunner(migrationConfig)
final List<LocalMigrationResource> state = migrationRunner.checkState(  // Not compile
    ebeanServer
          .getPluginApi
          .getDataSource
)
if (!state.isEmpty()) {
    migrationRunner.run(
        ebeanServer
            .getPluginApi
            .getDataSource
    )
}