database-migrations

Enforce reversible UP/DOWN database migrations for PostgreSQL and MySQL.

12|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/aurorie-co/AURORIE-TEAMS --skill database-migrations-aurorie-co
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migrations
Source: https://github.com/aurorie-co/AURORIE-TEAMS/tree/main/teams/backend/skills/database-migrations
Command: npx skills add https://github.com/aurorie-co/AURORIE-TEAMS --skill database-migrations-aurorie-co

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safe, reversible database schema changes and data migrations to minimize production risk during deployments.

Core Features & Use Cases

  • Enforces UP/DOWN migration patterns and explicit rollback plans.
  • Separates schema changes from data migrations to reduce downtime and risk.
  • Supports PostgreSQL, MySQL, and ORMs like Prisma, Drizzle, Django, TypeORM, and golang-migrate.

Quick Start

Plan and apply a zero-downtime migration by creating separate UP and DOWN migrations and a backfill strategy before deploying.

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 without causing production downtime?

Zero-downtime database migrations separate schema changes from data transformations to apply non-blocking operations. You create distinct UP and DOWN migrations alongside a backfill strategy before deploying.

What is a safe rollback strategy for PostgreSQL schema changes?

A safe rollback strategy for PostgreSQL schema changes requires explicit DOWN migration scripts that reverse the UP operations. You must test these rollback plans against production-like data before deploying.

Does this migration approach work with ORMs like Prisma, Drizzle, and TypeORM?

Yes, this migration approach works with ORMs like Prisma, Drizzle, and TypeORM. It also supports Django, golang-migrate, and direct PostgreSQL or MySQL database schema management.

Why should I separate schema changes from data migrations?

Separating schema changes from data migrations reduces deployment risk and database downtime. Schema alterations lock tables, so isolating them from data backfills keeps your database operations non-blocking.

How do I test database migrations against production-like data?

Testing database migrations against production-like data involves running structured UP and DOWN migrations on a mirrored database environment. This validates your rollback plans and zero-downtime patterns before deployment.

What's the best way to plan a reversible database migration?

The best way to plan a reversible database migration is to define explicit UP and DOWN scripts and a backfill strategy. This ensures your schema changes and data transformations remain non-blocking and safely reversible.