Database migration is how we will manage the database information of an application including DDLs, initial data, … in a version control fashion. There are two popular libraries to do this, Flyway and Liquibase.

In this tutorial, I summarize the Huong Dan Java’s articles about these libraries for your convenience.

Liquibase

In this tutorial, I show you how to use Liquibase to perform database migrations for Java applications.

To configure Liquibase with Spring MVC applications, you can refer to this tutorial.

Using Liquibase in Spring Boot is much simpler thanks to its auto configuration mechanism.

Flyway

Using Flyway, you can also easily implement database migration for your application.

Flyway can also be used very simply with Spring Boot.

Configuring Flayway with Spring Data R2DBC, you have to use another Spring Boot properties.

Add Comment