~/talk

Come Fly With Me: Database Migration Patterns with Flyway

Talkat J-Fall 2017 · on Thursday, 2017-11-02· [databases, java]
slides:none on file

Flyway provides versioned SQL/Java migrations, stores checksums in a schema table and fails if applied migrations change, and uses transactional DDL where supported (Postgres) unlike non‑transactional MySQL. Patterns covered: use dotted versions like 1.1 for maintenance patches so production patches sit between releases; enable outOfOrder on CI/test to accept feature-branch timestamps; use multiple migration locations to serve DB‑specific SQL or production-only data fixes; and baseline/rebase to squash migrations and create per‑service schema_version tables when extracting microservices. Running at startup requires a schema‑altering DB user or run in pipeline.

AI-written summary · about

  1. 0:00About Me
  2. 0:49The Problem With Databases
  3. 4:09Flyway
  4. 5:25Find Available Migrations
  5. 6:46Find Applied Migrations
  6. 7:52Validate
  7. 10:02Apply Migrations
  8. 12:12What's In A Migration?
  9. 13:13Usage Considerations
  10. 16:55Problem with Maintenance Branches
  11. 19:41Effect Per Environment
  12. 20:35Out-of-order Migrations
  13. 22:10Problem with Feature Branches
  14. 24:37Solution
  15. 25:39Timestamped Versions
  16. 28:58Migration Locations
  17. 30:40Multiple DBMSS & Spring Boot
  18. 31:07Environment-specific Migrations
  19. 32:24Migrations Are Forever?
  20. 33:03Squashing Migrations
  21. 35:41Rebasing When Squashing
  22. 39:24From Monolith To Microservices
  23. 40:43Shared DB Schema Evolution
  24. 44:13Conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.