Skip to content

Commit 79804f7

Browse files
author
miguelgomes
committed
Add support for new SpringLiquibase properties from 3.6.2
Issue: #13550
1 parent 4eff07f commit 79804f7

File tree

3 files changed

+59
-1
lines changed

3 files changed

+59
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ public SpringLiquibase liquibase() {
124124
liquibase.setChangeLog(this.properties.getChangeLog());
125125
liquibase.setContexts(this.properties.getContexts());
126126
liquibase.setDefaultSchema(this.properties.getDefaultSchema());
127+
liquibase.setLiquibaseSchema(this.properties.getLiquibaseSchema());
128+
liquibase.setLiquibaseTablespace(this.properties.getLiquibaseTablespace());
129+
liquibase.setDatabaseChangeLogTable(
130+
this.properties.getDatabaseChangeLogTable());
131+
liquibase.setDatabaseChangeLogLockTable(
132+
this.properties.getDatabaseChangeLogLockTable());
127133
liquibase.setDropFirst(this.properties.isDropFirst());
128134
liquibase.setShouldRun(this.properties.isEnabled());
129135
liquibase.setLabels(this.properties.getLabels());

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/liquibase/LiquibaseProperties.java

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,26 @@ public class LiquibaseProperties {
5353
*/
5454
private String defaultSchema;
5555

56+
/**
57+
* Liquibase database schema.
58+
*/
59+
private String liquibaseSchema;
60+
61+
/**
62+
* Liquibase tablespace.
63+
*/
64+
private String liquibaseTablespace;
65+
66+
/**
67+
* Database changelog table.
68+
*/
69+
private String databaseChangeLogTable;
70+
71+
/**
72+
* Database changelog lock table.
73+
*/
74+
private String databaseChangeLogLockTable;
75+
5676
/**
5777
* Whether to first drop the database schema.
5878
*/
@@ -132,6 +152,38 @@ public void setDefaultSchema(String defaultSchema) {
132152
this.defaultSchema = defaultSchema;
133153
}
134154

155+
public String getLiquibaseSchema() {
156+
return this.liquibaseSchema;
157+
}
158+
159+
public void setLiquibaseSchema(String liquibaseSchema) {
160+
this.liquibaseSchema = liquibaseSchema;
161+
}
162+
163+
public String getLiquibaseTablespace() {
164+
return this.liquibaseTablespace;
165+
}
166+
167+
public void setLiquibaseTablespace(String liquibaseTablespace) {
168+
this.liquibaseTablespace = liquibaseTablespace;
169+
}
170+
171+
public String getDatabaseChangeLogTable() {
172+
return this.databaseChangeLogTable;
173+
}
174+
175+
public void setDatabaseChangeLogTable(String databaseChangeLogTable) {
176+
this.databaseChangeLogTable = databaseChangeLogTable;
177+
}
178+
179+
public String getDatabaseChangeLogLockTable() {
180+
return this.databaseChangeLogLockTable;
181+
}
182+
183+
public void setDatabaseChangeLogLockTable(String databaseChangeLogLockTable) {
184+
this.databaseChangeLogLockTable = databaseChangeLogLockTable;
185+
}
186+
135187
public boolean isDropFirst() {
136188
return this.dropFirst;
137189
}

spring-boot-project/spring-boot-dependencies/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
<kafka.version>1.1.0</kafka.version>
119119
<kotlin.version>1.2.41</kotlin.version>
120120
<lettuce.version>5.1.0.M1</lettuce.version>
121-
<liquibase.version>3.6.1</liquibase.version>
121+
<liquibase.version>3.6.2-SNAPSHOT</liquibase.version>
122122
<log4j2.version>2.10.0</log4j2.version>
123123
<logback.version>1.2.3</logback.version>
124124
<lombok.version>1.16.22</lombok.version>

0 commit comments

Comments
 (0)