This skill provides a comprehensive framework for managing database schema and data changes with a focus on safety and zero-downtime deployments. It provides specialized guidance for PostgreSQL and MySQL, alongside specific workflows for popular ORMs like Prisma, Drizzle, and Django. By utilizing the 'expand-contract' pattern and rigorous safety checklists, developers can perform complex operations—such as renaming columns or adding indexes on massive tables—without locking production databases or causing application outages.
主要功能
01Zero-downtime 'expand-contract' migration strategies
02Safety checklists to identify and avoid blocking database operations
03Framework-specific guides for Prisma, Drizzle, Django, and golang-migrate
04172,008 GitHub stars
05Best practices for separating DDL (schema) and DML (data) migrations
06Pattern-based SQL examples for large-scale batch data backfilling
使用场景
01Safely backfilling data in multi-million row tables using batched updates
02Setting up robust migration workflows for new projects using modern ORMs
03Modifying large production database tables without service interruption