dbToolContext.setDbManagement(dbManagement);
dbToolContext.setCatalog(catalog);
dbToolContext.setSchemaNames(ImmutableSet.of(schemaName));
if (actualSchemaVersion == null) {
// Assume empty database, so attempt to create tables
DbCreateOperation createOperation = new DbCreateOperation(dbToolContext, true, null, false);
createOperation.execute();
} else if (actualSchemaVersion < expectedSchemaVersion) {
// Upgrade from expected to actual
DbUpgradeOperation upgradeOperation = new DbUpgradeOperation(dbToolContext, true, null);
upgradeOperation.execute();
} else if (expectedSchemaVersion > actualSchemaVersion) {