LIQUIBASE is a provider of Spring Boot Data for handling database schemas operations. LIQUIBASE is an Open Source tool which keep track of database schema script revisions. It can handle variety of database types and accepts a variety of file formats for defining the database structures.
See Also:
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>
After adding LIQUIBASE dependencies in your application it will automatically download and add the required other dependencies in your application and initialize with default values. You can overwrite these values through application.properties / application.yaml .
Liquibase Configuration Properties
Spring Boot load these properties in LiquibaseProperties class.
Name | Default Value | Description |
liquibase.change-log | classpath:/db/ changelog/db. changelog-master.yaml | Change log configuration path. |
liquibase.check-change-log-location | true | Check the change log location exists. |
liquibase.contexts | Comma-separated list of runtime contexts to use. | |
liquibase.default-schema | Default database schema. | |
liquibase.drop-first | false | Drop the database schema first. |
liquibase.enabled | true | Enable liquibase support. |
liquibase.labels | Comma-separated list of runtime labels to use. | |
liquibase.parameters.* | Change log parameters. | |
liquibase.password | Login password of the database to migrate. | |
liquibase.rollback-file | File to rollback SQL statements will be written when an update is performed. | |
liquibase.url | JDBC url of the database to migrate. Incase not set then use the primary configured data source. | |
liquibase.user | Login user of the database to migrate. |
References
https://docs.spring.io/spring-boot/docs/1.4.x/reference/html/common-application-properties.html
Happy Learning !!!
You must log in to post a comment.