database-migrations

Manage database schema changes and data migrations across SQL databases and ORMs.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/YosefHayim/Template --skill database-migrations-yosefhayim
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migrations
Source: https://github.com/YosefHayim/Template/tree/main/.cursor/skills/database-migrations
Command: npx skills add https://github.com/YosefHayim/Template --skill database-migrations-yosefhayim

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and best practices for managing database schema changes, ensuring data integrity and minimizing downtime during production deployments.

Core Features & Use Cases

  • Schema Evolution: Safely add, modify, or remove tables, columns, and indexes.
  • Data Migrations: Handle data backfilling, transformations, and cleanups.
  • Zero-Downtime Deployments: Implement strategies for seamless schema updates without service interruption.
  • Rollback Strategies: Ensure reversibility for all migration steps.
  • Tooling Integration: Covers patterns for PostgreSQL, MySQL, Prisma, Drizzle, Django, TypeORM, and golang-migrate.

Quick Start

Review the PostgreSQL patterns for safely adding a column to a large table.

Frequently Asked Questions about database-migrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform zero-downtime database migrations in production?

Zero-downtime database migrations require separating schema changes from application deploys, using techniques like expand-contract patterns to update production systems without service interruption. This Skill provides strategies for seamless schema updates and rollback procedures.

What is the best way to safely add a column to a large production database table?

Safely adding a column to a large database table involves adding it as nullable or with a default value, backfilling data in batches, and avoiding long table locks. This Skill covers schema evolution patterns for large production SQL databases.

Does this database migration guidance support PostgreSQL and MySQL?

Yes, this database migration guidance supports both PostgreSQL and MySQL, covering specific patterns for safely managing schema changes and data transformations across various SQL databases.

Can I use these migration patterns with ORM tools like Prisma, Django, or TypeORM?

Yes, these migration patterns integrate with ORM tooling including Prisma, Drizzle, Django, TypeORM, and golang-migrate, addressing specific migration tooling and transactional integrity for each framework.

How do database rollback strategies work for schema evolution?

Database rollback strategies ensure reversibility for all migration steps by applying compensating schema changes and data backups before destructive operations. This Skill provides patterns for safe schema evolution and reliable rollback execution.

What are the limitations of zero-downtime schema changes?

Zero-downtime schema changes are limited by operations requiring exclusive table locks, such as altering column types or adding constraints on large tables. This Skill outlines safe schema evolution patterns and when to use multi-step deployments to avoid these constraints.