How to Integrate Liquibase into Your Spring Boot Project
A practical walkthrough about what Liquibase actually does, how to wire it up, and the gotchas I wish someone had told me about.
We version our code, review it in pull requests and build it in CI. Then we change the database by running a script by hand and hoping we remember to run it everywhere. Sooner or later one environment gets skipped, and a release that worked on dev fails on production with column “notes” does not exist.
Liquibase fixes this by putting your database changes in files that live in Git, right next to your code. In this guide I’ll show you how to integrate it into a Spring Boot project, from the first changeset all the way to rollbacks, zero-downtime migrations, tests and CI/CD.…