use of org.flywaydb.core.api.MigrationInfoService in project flyway by flyway.
the class InfoMojo method doExecute.
@Override
protected void doExecute(Flyway flyway) {
MigrationInfoService info = flyway.info();
MigrationInfo current = info.current();
MigrationVersion currentSchemaVersion = current == null ? MigrationVersion.EMPTY : current.getVersion();
log.info("Schema version: " + currentSchemaVersion);
log.info("");
log.info(MigrationInfoDumper.dumpToAsciiTable(info.all()));
}
use of org.flywaydb.core.api.MigrationInfoService in project incubator-gobblin by apache.
the class DatabaseJobHistoryStoreSchemaManager method info.
public void info() throws FlywayException {
MigrationInfoService info = flyway.info();
System.out.println(MigrationInfoDumper.dumpToAsciiTable(info.all()));
}
Aggregations