r/SpringBoot • • Feb 19 '25

Guide DB migration in Springboot

It might be a it of a niche topic but found this video to be very useful. It shows how to use Flyway ( a DB migration tool) with Springboot.

I think it is a nice expansion to our personal projects portfolio.

https://youtu.be/X6LzJg8P-qI?si=y4bX2Cajici1GOqn

22 Upvotes

16 comments sorted by

View all comments

2

u/bikeram Feb 19 '25

Does anyone have experience with flyway vs liquibase?

0

u/[deleted] Feb 20 '25

[deleted]

1

u/prab2112 Feb 20 '25

I agreed learning curve is much in liquibase, also rolling back a migration is better in liquibase

1

u/prab2112 Feb 20 '25

Yes I have flyway is better than liquibase in terms of writing the migration scripts .

0

u/Seven-Prime Feb 19 '25

Just switched from liquibase to flyway.

Folks like flyway because they can just write SQL Folks like liquibase because they don't have to write SQL*.

  • if they don't want to.

1

u/[deleted] Oct 12 '26

[removed] — view removed comment

1

u/Seven-Prime Oct 12 '26

Politics. lol. Well not really I guess.

The microservices we built were under one product group / platform. Then they moved our services to a different product group / platform. The new group used flyway. To ease transition and fit in with the CICD patterns we switched to flyway. The db stuff wasn't all that that much, so it was pretty easy.

0

u/db-master Oct 13 '26

Years ago, when I was building a Java application for a personal project, I compared Liquibase and Flyway and picked Flyway. Liquibase just felt arcane to use.

At my day job, though, neither tool was enough on its own, because both lacked collaboration features. One of my previous companies had an internal tool where developers submitted schema changes, and DBAs reviewed and deployed them.

That tool was the inspiration for Bytebase I built.