Database Migrations & Schema Patterns

•
12
•

Implements safe, reversible, and zero-downtime database schema changes across multiple SQL dialects and popular ORMs.

This skill provides expert guidance for managing production database evolutions without risking downtime or data integrity. It offers standardized patterns for complex operations like adding concurrent indexes, performing batch data backfills, and executing the expand-contract pattern for breaking changes. Whether you are using modern TypeScript ORMs like Prisma and Drizzle, traditional frameworks like Django, or Go-based migration tools, this skill ensures every schema change is versioned, tested, and reversible.

Key Features

01Zero-downtime deployment strategies (Expand-Contract pattern)
02Concurrent index creation and lock-free schema changes
03Multi-ORM support including Prisma, Drizzle, Kysely, and Django
04Batch data migration templates for large-scale production tables
05Automated migration safety checklists and anti-pattern detection
0612 GitHub stars

Use Cases

01Planning a complex column rename on a high-traffic production table
02Safely backfilling millions of rows of data without locking the database
03Setting up robust migration workflows for a new full-stack project