# Zero downtime database changes

> Plans schema changes and big backfills in expand and contract steps with lock limits, so production never freezes.

- Page: https://youraiskill.com/skill/ericrisco-db-migrations
- What it does: Use when a schema change must ship without downtime — NOT NULL, rename, type change, or backfilling millions of live rows — for the expand-contract sequence and the lock/batching discipline that keeps each step from freezing prod. NOT lock internals or EXPLAIN (that is `postgresdb`), NOT drizzle-kit mechanics (that is `drizzle-orm`), NOT PITR (that is `backups`).
- Niches: backend, devops
- Licence: MIT
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions plus scripts (7 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
