Loading lesson…
Level 1 · Apprentice0 XP
Version your schema like code, and change it without downtime.
Step 1 / 6
ProblemA developer set spring.jpa.hibernate.ddl-auto=update in production. A renamed field created a new column and the old data was left behind. Nobody knew which schema was live.
← → step
Before this: Transactions in depth
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Rename a column with expand and contract across three migrations and two app versions. Run all migrations in a Testcontainers PostgreSQL test and verify data survives.