Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ public SpringLiquibase liquibase() {
liquibase.setChangeLog(this.properties.getChangeLog());
liquibase.setContexts(this.properties.getContexts());
liquibase.setDefaultSchema(this.properties.getDefaultSchema());
liquibase.setLiquibaseSchema(this.properties.getLiquibaseSchema());
liquibase.setLiquibaseTablespace(this.properties.getLiquibaseTablespace());
liquibase.setDatabaseChangeLogTable(
this.properties.getDatabaseChangeLogTable());
liquibase.setDatabaseChangeLogLockTable(
this.properties.getDatabaseChangeLogLockTable());
liquibase.setDropFirst(this.properties.isDropFirst());
liquibase.setShouldRun(this.properties.isEnabled());
liquibase.setLabels(this.properties.getLabels());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,26 @@ public class LiquibaseProperties {
*/
private String defaultSchema;

/**
* Schema to use for Liquibase objects.
*/
private String liquibaseSchema;

/**
* Tablespace to use for Liquibase objects.
*/
private String liquibaseTablespace;

/**
* Name of table to use for tracking change history.
*/
private String databaseChangeLogTable;

/**
* Name of table to use for tracking concurrent Liquibase usage.
*/
private String databaseChangeLogLockTable;

/**
* Whether to first drop the database schema.
*/
Expand Down Expand Up @@ -132,6 +152,38 @@ public void setDefaultSchema(String defaultSchema) {
this.defaultSchema = defaultSchema;
}

public String getLiquibaseSchema() {
return this.liquibaseSchema;
}

public void setLiquibaseSchema(String liquibaseSchema) {
this.liquibaseSchema = liquibaseSchema;
}

public String getLiquibaseTablespace() {
return this.liquibaseTablespace;
}

public void setLiquibaseTablespace(String liquibaseTablespace) {
this.liquibaseTablespace = liquibaseTablespace;
}

public String getDatabaseChangeLogTable() {
return this.databaseChangeLogTable;
}

public void setDatabaseChangeLogTable(String databaseChangeLogTable) {
this.databaseChangeLogTable = databaseChangeLogTable;
}

public String getDatabaseChangeLogLockTable() {
return this.databaseChangeLogLockTable;
}

public void setDatabaseChangeLogLockTable(String databaseChangeLogLockTable) {
this.databaseChangeLogLockTable = databaseChangeLogLockTable;
}

public boolean isDropFirst() {
return this.dropFirst;
}
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-project/spring-boot-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<kafka.version>1.1.0</kafka.version>
<kotlin.version>1.2.51</kotlin.version>
<lettuce.version>5.1.0.M1</lettuce.version>
<liquibase.version>3.6.1</liquibase.version>
<liquibase.version>3.6.2</liquibase.version>
<log4j2.version>2.11.0</log4j2.version>
<logback.version>1.2.3</logback.version>
<lombok.version>1.18.0</lombok.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,10 @@ content into your application. Rather, pick only the properties that you need.
spring.liquibase.check-change-log-location=true # Whether to check that the change log location exists.
spring.liquibase.contexts= # Comma-separated list of runtime contexts to use.
spring.liquibase.default-schema= # Default database schema.
spring.liquibase.liquibase-schema= # Schema to use for Liquibase objects.
spring.liquibase.liquibase-tablespace= # Tablespace to use for Liquibase objects.
spring.liquibase.database-change-log-table= # Name of table to use for tracking change history.
spring.liquibase.database-change-log-lock-table= # Name of table to use for tracking concurrent Liquibase usage.
spring.liquibase.drop-first=false # Whether to first drop the database schema.
spring.liquibase.enabled=true # Whether to enable Liquibase support.
spring.liquibase.labels= # Comma-separated list of runtime labels to use.
Expand Down