How versioning maintenance happens in Liquibase

Introduction In this tutorial I am going to show you how to work with different changes or versioning maintenance on database scripts without touching the original SQL scripts. So we will only work with the changes we need at a later point of time for our database. Let’s say you have created a table through SQL script using liquibase framework and you forgot to add a column in the table. Later you thought that you need another column which is required to process your business requirements. So what next you…

Continue

How to setup Liquibase in Spring for Multiple DataSources

Introduction In this tutorial I will show you how to setup Liquibase in Spring for multiple datasources. In my previous tutorial I had shown how to setup multiple datadources in Spring Boot application.┬áHere also I am going to create a Spring Boot application to define multiple datasources and will use these datasources into Liquibase. I had created examples using XML and YAML & SQL on how to work with Liquibase for evolving your database and I used single database in those examples but here I will tell you how you…

Continue

Evolving Database using Spring Boot and Liquibase with YAML and SQL Configuration

In this tutorial I will show you an example on evolving database using Spring Boot and Liquibase with YAML and SQL configuration. We had seen similar example using XML configuration. I will also show you how to build application using both maven and gradle build tools. I will not tell you much details on Liquibase but you can always find more details on it in my previus example. Liquibase is an open source library for tracking, managing and applying database changes that can be used for any database. It helps…

Continue

Spring Boot Liquibase Gradle Example with XML based Configuration

Introduction In this example I will show you how to use Liquibase to maintain your database changes history over the time. I will use here XML based configuration for Liquibase. It is often important to consider when developing web application, how to evolve the database schema of a Java web application. I will tell you how to build project using both maven and gradle build tools. Liquibase is an open source library for tracking, managing and applying database changes that can be used for any database. It helps you create…

Continue