Problem
Schema changes (add column, rename, split table) lock tables, break running apps, cause downtime.
Also known as: schema-migration, expand-contract, zero-downtime-migration
Evolve database schema without downtime or locking, using backward-compatible multi-phase migrations.
Schema changes (add column, rename, split table) lock tables, break running apps, cause downtime.
Low — migration tools, temp storage
High — multi-phase, verification, timing
High — expand/contract discipline
Backfill stalls → phase 3 delayed
Data inconsistency between old/new → silent corruption
Contract before verification → data loss
Index creation locks table (use CONCURRENTLY)
Migration script bug → partial state, manual fix