use of org.jooq.exception.DataMigrationValidationException in project jOOQ by jOOQ.
the class MigrationImpl method validate0.
private final void validate0(DefaultMigrationContext ctx) {
JooqMigrationsChangelogRecord currentRecord = currentChangelogRecord();
if (currentRecord != null) {
Commit currentCommit = commits().get(currentRecord.getMigratedTo());
if (currentCommit == null)
throw new DataMigrationValidationException("Version currently installed is not available from CommitProvider: " + currentRecord.getMigratedTo());
}
validateCommitProvider(ctx, from());
validateCommitProvider(ctx, to());
revertUntracked(ctx, null, currentRecord);
}
Aggregations