zero-downtime-database-migration - Skill Dossier
zero-downtime-database-migration

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.

Backend & Infrastructure
#database#migration#postgres#mysql#zero-downtime#expand-contract

Allowed Tools

ReadGrepGlobEditWriteBash

Share this skill

Skills use the open SKILL.md standard — the same file works across all platforms.

Install all 547 skills as a plugin
claude plugin marketplace add curiositech/windags-skills claude plugin install windags-skills

Claude activates zero-downtime-database-migration automatically when your task matches its description.

View on GitHub