Concept
A migration is a versioned script that changes the schema, applied in order on every environment. It makes the database's shape part of the code, reviewed and deployed with it.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Migrations doing its job.
-- migrations/0007_orders_note.sql
ALTER TABLE orders ADD COLUMN note text;
-- A safe rename is two deploys:
-- 1. add the new column, write to both, backfill
-- 2. switch reads, then drop the old columnEditing a migration that has already run somewhere. Other environments never see the change; write a new migration instead, and treat applied ones as immutable.
Your roadmap puts these before Migrations, unless you already know them.
Once a session shows you understand Migrations, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.
Topics that build on Migrations.