Database Migration Patterns

•
5
•

Guides the implementation of safe, reversible database schema changes and zero-downtime deployment strategies across major ORMs and SQL dialects.

This skill equips Claude with specialized knowledge for managing complex database lifecycles without risking production stability. It provides standardized patterns for PostgreSQL and MySQL, alongside specific workflows for popular ORMs like Prisma, Drizzle, Kysely, and Django. By emphasizing the 'expand-contract' pattern and rigorous safety checklists, it ensures that schema updates, data backfills, and index creations are performed without locking production tables or causing application downtime.

Características Principales

01Best practices for separating DDL (schema) from DML (data) migrations
02Zero-downtime expand-contract migration strategies
035 GitHub stars
04Safe PostgreSQL patterns for non-blocking index and column additions
05Automated migration safety checklists to prevent production incidents
06Multi-ORM support including Prisma, Drizzle, Kysely, and Django

Casos de Uso

01Setting up robust migration workflows for new Node.js, Python, or Go projects
02Planning and executing schema changes for high-traffic production databases
03Refactoring legacy database columns safely using phased deployments