role-database:database-migration

Plan database schema and data migrations across engines with zero-downtime strategies.

14|3|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/rnavarych/alpha-engineer --skill role-database-database-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: role-database:database-migration
Source: https://github.com/rnavarych/alpha-engineer/tree/main/plugins/roles/role-database/skills/database-migration
Command: npx skills add https://github.com/rnavarych/alpha-engineer --skill role-database-database-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on managing database schema and data migrations, ensuring smooth transitions and minimizing downtime across various database engines and tools.

Core Features & Use Cases

  • Migration Tooling: Covers popular tools like Flyway, Liquibase, Alembic, Prisma Migrate, and more.
  • Zero-Downtime Strategies: Details patterns like expand-contract, blue-green deployments, and shadow writes.
  • Cross-Engine Migration: Offers specific advice for migrating between databases such as MySQL to PostgreSQL, Oracle to PostgreSQL, and MongoDB to PostgreSQL.
  • CI/CD Integration: Explains how to integrate migration processes into automated pipelines.
  • Use Case: You need to migrate your production PostgreSQL database to a new version with zero downtime. This Skill will guide you through the expand-contract pattern and provide specific SQL commands for safe execution.

Quick Start

Use the database-migration skill to plan a zero-downtime migration from MySQL to PostgreSQL.

Frequently Asked Questions about role-database:database-migration

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

FAQPage Schema
How do I perform a zero-downtime database schema migration in production?

Zero-downtime database schema migration uses patterns like expand-contract and blue-green deployments to apply schema changes without service interruption. This approach involves splitting migrations into backward-compatible phases, allowing new and old application versions to run simultaneously during the transition.

What is the best way to migrate a database from MySQL to PostgreSQL?

Cross-engine database migration from MySQL to PostgreSQL requires translating SQL dialects and migrating schema definitions alongside data. Using tools like Debezium for change data capture or specialized migration scripts ensures data consistency during the transition between different database engines.

How do I integrate Flyway or Liquibase into my CI/CD pipeline for schema migrations?

Integrating Flyway or Liquibase into CI/CD pipelines automates database schema migrations during deployment. This ensures version-controlled schema changes are applied consistently across environments, using migration tool specifics to validate SQL scripts before production deployment.

When do I need the expand-contract pattern for database migrations?

The expand-contract pattern is needed for zero-downtime database migrations when applying breaking schema changes. You first expand the schema to support both old and new versions, deploy the application, then contract by removing obsolete columns after confirming the new version is stable.

Can I use Prisma Migrate for cross-engine database transitions?

Prisma Migrate primarily manages schema migrations for applications using the Prisma ORM. For cross-engine database transitions like MongoDB to PostgreSQL, you typically need specialized data replication tools like Debezium combined with custom SQL scripts rather than relying solely on schema migration tools.