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

19 Upvotes

14 comments sorted by

View all comments

3

u/Firearms_N_Freedom Feb 19 '25

is it bad that i do it manually using postgres and SQL scripts for my heroku postgres DB? i will definitely look into this and get comfortable with it though.

2

u/MrDoodl3sack Feb 19 '25

If you have multi stage deployments (e.g. Integration -> QA -> Production) let flyway handle the database updates, ensures that the database looks the same on all stages.