Zero Downtime Database Migration

Use when changing schema on a live production database without dropping traffic, doing expand/contract migrations, backfilling new columns on million-plus-row tables, dual-writing across schemas, renaming a hot column, splitting a table, or adding a foreign key to a big table. Triggers: ALTER TABLE locks the world, "must be removed in a separate deploy", expand-contract-cleanup phases, NOT NULL on populated column, foreign-key add on big table, dropping a column still read by old replicas, lock_timeout choice, gh-ost vs pt-online-schema-change. NOT for greenfield schema design, ORM-managed migration mechanics (Prisma/Drizzle), D1/Supabase CLI quirks, or NoSQL document migrations.

curiositech Updated 10 repo stars

File contents

curiositech/windags-skills/tree/main/skills/zero-downtime-database-migration commit 40fe3ccdc7

Frequently asked questions

npx skillmds@latest add curiositech/zero-downtime-database-migration