database-migrations

Guide database migration strategies for schema changes, data migrations, and rollbacks.

Updated Mar 21, 2026
One-click install
npx skills add https://github.com/dbrijesh/raep --skill database-migrations-dbrijesh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migrations
Source: https://github.com/dbrijesh/raep/tree/main/templates/skills/database-migrations
Command: npx skills add https://github.com/dbrijesh/raep --skill database-migrations-dbrijesh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide for performing database migrations safely and efficiently, ensuring zero-downtime deployments and minimizing risks associated with schema changes and data migrations.

Core Features & Use Cases

  • Schema Changes: Safely alter database schemas with reversible migrations.
  • Data Migrations: Handle data migrations like backfill and transform operations.
  • Rollbacks: Plan and execute rollbacks using new forward migrations.
  • Zero-Downtime Deployments: Implement strategies for seamless database updates.
  • ORM Support: Guidance for Prisma, Drizzle, Django, TypeORM, and golang-migrate.

Quick Start

Activate the database-migrations skill to learn about best practices for schema changes and zero-downtime deployments.

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 for schema changes?

Zero-downtime database migrations require strategies like reversible schema changes and backfill operations to ensure seamless database updates without service interruption. This approach minimizes risks during deployment by applying forward-only migrations safely.

What is the best way to handle database rollbacks after a failed schema change?

Database rollbacks should be planned and executed using new forward migrations rather than automated reversal scripts. This ensures data integrity by applying compensating schema changes and data transformations to safely revert the database state.

Does this database migration guidance work with Prisma, Drizzle, and Django ORMs?

Yes, the database migration guidance supports common ORMs including Prisma, Drizzle, Django, TypeORM, and golang-migrate. It provides specific best practices for schema changes and data migrations tailored to these frameworks.

How do I safely execute data migrations like backfill and transform operations?

Data migrations like backfill and transform operations are executed safely by applying reversible migration strategies and zero-downtime deployment techniques. This ensures data consistency while modifying existing records without locking the database.

When do I need to use reversible database migrations for PostgreSQL and MySQL?

Reversible database migrations are needed for PostgreSQL and MySQL when performing schema changes that might require rollbacks or zero-downtime deployments. They allow you to safely alter database schemas while maintaining the ability to revert if issues arise.