Database Migrations Best Practices

•
12
•

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

This skill equips Claude with advanced domain knowledge for executing database migrations safely in high-stakes production environments. It focuses on preventing service interruptions through strategies like the Expand-Contract pattern, concurrent indexing, and batched data backfills. Whether you are using raw SQL for PostgreSQL and MySQL or utilizing modern ORMs like Prisma, Drizzle, or Django, this skill provides the checklists and implementation patterns necessary to ensure migrations are reversible, non-locking, and consistent across development and production environments.

主要功能

01Zero-downtime Expand-Contract migration patterns
02Batched data migration techniques for production-scale datasets
0312 GitHub stars
04Framework-specific workflows for Prisma, Drizzle, Django, and Go
05Non-blocking concurrent index creation strategies for large tables
06Comprehensive safety checklists for DDL and DML operations

使用场景

01Configuring robust migration workflows for new projects using modern TypeScript or Python ORMs
02Renaming columns in high-traffic production databases without downtime
03Safely backfilling millions of records using batched SQL or application logic