comparisons[i++] = new CompareControl.SchemaComparison(schema, schema);
}
CompareControl compareControl = new CompareControl(comparisons, snapshotTypes);
diffOutputControl.setDataDir(dataDir);
GenerateChangeLogCommand command = new GenerateChangeLogCommand();
command.setReferenceDatabase(originalDatabase)
.setSnapshotTypes(snapshotTypes)
.setOutputStream(System.out)
.setCompareControl(compareControl);
command.setChangeLogFile(changeLogFile)
.setDiffOutputControl(diffOutputControl);
command.setAuthor(author)
.setContext(context);
try {
command.execute();
} catch (CommandExecutionException e) {
throw new LiquibaseException(e);
}
}