ClearChecksum
This commit is contained in:
parent
a544d6d206
commit
1cbb20797d
@ -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());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user