Merge branch '1.5.x'
This commit is contained in:
commit
2c315d3d6f
|
|
@ -116,9 +116,9 @@ public class LiquibaseAutoConfiguration {
|
||||||
|
|
||||||
private SpringLiquibase createSpringLiquibase() {
|
private SpringLiquibase createSpringLiquibase() {
|
||||||
SpringLiquibase liquibase;
|
SpringLiquibase liquibase;
|
||||||
DataSource dataSource = getDataSource();
|
DataSource dataSourceToUse = getDataSource();
|
||||||
if (dataSource == null) {
|
if (dataSourceToUse == null) {
|
||||||
dataSource = DataSourceBuilder.create().url(this.properties.getUrl())
|
dataSourceToUse = DataSourceBuilder.create().url(this.properties.getUrl())
|
||||||
.username(this.properties.getUser())
|
.username(this.properties.getUser())
|
||||||
.password(this.properties.getPassword()).build();
|
.password(this.properties.getPassword()).build();
|
||||||
liquibase = new DataSourceClosingSpringLiquibase();
|
liquibase = new DataSourceClosingSpringLiquibase();
|
||||||
|
|
@ -126,7 +126,7 @@ public class LiquibaseAutoConfiguration {
|
||||||
else {
|
else {
|
||||||
liquibase = new SpringLiquibase();
|
liquibase = new SpringLiquibase();
|
||||||
}
|
}
|
||||||
liquibase.setDataSource(dataSource);
|
liquibase.setDataSource(dataSourceToUse);
|
||||||
return liquibase;
|
return liquibase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue