Spring Boot Liquibase

Spring boot is a widely used Framework for creating Microservices. It makes it easy to create standalone, production-grade Spring-based applications. Liquibase provides excellent support with Spring boot. Spring Boot Liquibase dependency can be added via Maven and Gradle as a build tool.

Spring Boot offers a subset of the Liquibase configuration options. Most of the Liquibase commands can be added to the configuration file. In the table, the Spring Boot options are listed against the Liquibase options.

Spring Boot Liquibase Description
spring.liquibase.change-log changelog-file changelog configuration path and name
spring.liquibase.labels labels Comma-separated list of runtime labels to use
spring.liquibase.contexts Contexts Comma-separated list of runtime contexts to use
spring.liquibase.database-change-log-lock-table databaseChangeLogLockTableName Name of table to use for tracking concurrent Liquibase usage
spring.liquibase.database-change-log-table databaseChangeLogTableName Name of table to use for tracking change history
spring.liquibase.default-schema defaultSchemaName Default database schema
spring.liquibase.liquibase-schema liquibaseSchemaName Schema to use for Liquibase objects
spring.liquibase.liquibase-tablespace databaseChangeLogTablespaceName Tablespace to use for Liquibase objects
spring.liquibase.parameters.* parameter.* changelog parameters
spring.liquibase.password password Login password of the database to migrate
spring.liquibase.tag - Tag name to use when applying database changes. Can also be used with rollbackFile to generate a rollback script for all existing changes associated with that tag
spring.liquibase.url url JDBC URL of the database to migrate. If not set, the primary configured data source is used
spring.liquibase.user username
Login user of the database to migrate

 

follow us on