Database Migration Patterns

•
215k
•

Guides safe, zero-downtime database schema changes and data migrations across multiple ORMs and SQL dialects.

This skill empowers Claude to act as a database reliability engineer, providing battle-tested patterns for schema evolution without service interruption. It covers essential strategies like the expand-contract pattern, concurrent index creation, and safe data backfilling for major databases like PostgreSQL and MySQL, while integrating seamlessly with popular frameworks like Prisma, Drizzle, Django, and golang-migrate. It is particularly useful for developers planning production-grade infrastructure changes who need to avoid table locks, ensure reversibility, and maintain data integrity during complex deployments.

主要功能

01Batch data migration scripts for high-volume production tables
02Safe PostgreSQL and MySQL DDL/DML implementation patterns
03Automated migration safety checklists and anti-pattern detection
04Framework-specific workflows for Prisma, Drizzle, Django, and Go
05Zero-downtime migration strategies (Expand-Contract pattern)
06214,597 GitHub stars

使用场景

01Refactoring production database schemas without service downtime
02Adding indexes to multi-million row tables safely without locking
03Implementing complex data backfills and transformations in production