ClearChecksum

This commit is contained in:
Timo Bejan 2023-11-06 23:56:33 +02:00
parent a544d6d206
commit 1cbb20797d

View File

@ -63,11 +63,13 @@ public class TenantSpringLiquibaseExecutor implements InitializingBean, Resource
encryptionService.decrypt(tenant.getDatabaseConnection().getPassword()))) {
DataSource tenantDataSource = new SingleConnectionDataSource(connection, false);
SpringLiquibase liquibase = this.getSpringLiquibase(tenantDataSource);
liquibase.setClearCheckSums(tenantLiquibaseProperties.isClearChecksums());
liquibase.setDefaultSchema(tenant.getDatabaseConnection().getSchema());
liquibase.setLiquibaseSchema(tenant.getDatabaseConnection().getSchema());
liquibase.afterPropertiesSet();
} catch (Exception e) {
log.error("Failed to run liquibase migration on tenant: {}", tenant.getTenantId());
e.printStackTrace();
log.error("Failed to run liquibase migration on tenant: {}", tenant.getTenantId(),e);
}
log.info("Liquibase ran for tenant " + tenant.getTenantId());
}