Database Migration Patterns

•
113k
•

Implements safe, zero-downtime database schema changes and data migrations across major SQL engines and ORMs.

This skill equips Claude with expert-level guidance for managing database evolution in production environments without risking downtime or data integrity. It covers essential strategies like the expand-contract pattern, safe column additions, and non-blocking index creation for PostgreSQL and MySQL. By providing standardized workflows for popular tools like Prisma, Drizzle, Kysely, and Django, it helps developers avoid common pitfalls such as table locks and irreversible schema changes while ensuring every migration is tested and immutable.

Key Features

01Safe PostgreSQL patterns including concurrent index creation and non-blocking alters
02Comprehensive safety checklists for verifying migrations before production deployment
03Framework-specific workflows for Prisma, Drizzle, Kysely, and Django
04Large-scale data migration batching techniques to prevent transaction timeouts
05Zero-downtime schema change strategies using the Expand-Contract pattern
06112,913 GitHub stars

Use Cases

01Altering high-traffic production tables without triggering global table locks
02Executing complex data backfills for millions of records using batched SQL updates
03Standardizing migration tooling and rollback procedures for new backend projects