Загрузка...

Liquibase in Spring Boot: Full Beginner-to-Advanced Guide

Database migrations shouldn’t feel like walking on a minefield.
In this hands-on tutorial, we show you how to integrate Liquibase into a Spring Boot application and make your migrations safe, traceable, and production-ready. You’ll learn how to structure changelogs in YAML and SQL, handle rollbacks with confidence, use preconditions for safer updates, generate diffs between schema versions, and even automate it all with CI/CD. Whether you’re just starting out or refining your workflow, this video will help you master Liquibase with real-world Spring Boot projects.

00:00 – Intro: Why Liquibase?
00:40 – Project Setup: Spring Boot + PostgreSQL + Liquibase
01:24 – Creating Entities: Civilian, Cyberware, ImplantSession
02:31 – Repositories & Service Layer
02:48 – Running with CommandLineRunner
03:25 – PostgreSQL via Docker Compose
04:11 – Datasource Configuration in application.properties
04:36 – How Liquibase Works: Changelogs, Changesets, ChangeTypes
05:26 – Master Changelog File in YAML
07:56 – Creating Schema via YAML Changelog
10:44 – Inserting Sample Data with Liquibase
13:11 – Liquibase Tables: DATABASECHANGELOG and DATABASECHANGELOGLOCK
14:19 – Adding a Column with Liquibase
15:36 – Using Preconditions Safely
18:59 – Rollbacks in Liquibase Explained
20:11 – Configuring Liquibase Maven Plugin
20:56 – Writing Rollback Logic in YAML
21:58 – Running liquibase:rollback via Maven
22:47 – Liquibase Diff: Compare Schema Versions
23:22 – Risks & Limitations of diff
24:23 – Configuring diff with Hibernate
25:39 – Generating Changelog with mvn liquibase:diff
25:56 – Validating and Editing Auto-Generated Diff
26:50 – Using Liquibase in CI/CD (GitHub Actions Example)
29:57 – Wrap-Up & Final Thoughts

Related resources:
Article — How To Use Liquibase with Spring Boot https://bell-sw.com/blog/how-to-use-liquibase-with-spring-boot/?utm_source=youtube&utm_medium=video_description&utm_campaign=youtube_liquibase
Video — Flyway in Spring Boot: Step-by-Step Tutorial with Maven (Beginner Friendly) https://www.youtube.com/watch?v=XnhTJmKjGSQ

Видео Liquibase in Spring Boot: Full Beginner-to-Advanced Guide канала CyberJAR
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять