@Override public List<FlywayMigration> invoke() { List<FlywayMigration> migrations = new ArrayList<FlywayMigration>(); for (MigrationInfo info : this.flyway.info().all()) { migrations.add(new FlywayMigration(info)); } return migrations; }
public FlywayMigration(MigrationInfo info) { this.type = info.getType(); this.checksum = info.getChecksum(); this.version = nullSafeToString(info.getVersion()); this.description = info.getDescription(); this.script = info.getScript(); this.state = info.getState(); this.installedOn = info.getInstalledOn(); this.executionTime = info.getExecutionTime(); }
public FlywayMigration(MigrationInfo info) { this.type = info.getType(); this.checksum = info.getChecksum(); this.version = info.getVersion().toString(); this.description = info.getDescription(); this.script = info.getScript(); this.state = info.getState(); this.installedOn = info.getInstalledOn(); this.executionTime = info.getExecutionTime(); }