database-migration

Performs schema migrations for MySQL, including adding a default-valued `status` column to the users table.

38.6k|4.1k|Updated Jul 24, 2025
One-click install
npx skills add https://github.com/wshobson/agents --skill database-migration-wshobson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migration
Source: https://github.com/wshobson/agents/tree/main/plugins/framework-migration/skills/database-migration
Command: npx skills add https://github.com/wshobson/agents --skill database-migration-wshobson

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the complex and often risky process of migrating database schemas and data, ensuring data integrity and minimizing downtime.

Core Features & Use Cases

  • ORM Agnostic Migrations: Supports Sequelize, TypeORM, and Prisma.
  • Schema Transformations: Safely add, rename, or change column types.
  • Data Transformation: Migrate and transform data between different formats or structures.
  • Zero-Downtime Strategies: Implements blue-green deployments and other techniques to avoid service interruption.
  • Rollback Procedures: Includes transaction-based and checkpoint-based rollback mechanisms for safety.

Quick Start

Use the database-migration skill to add a new 'status' column with a default value of 'active' to the 'users' table.

Frequently Asked Questions about database-migration

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

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

Zero-downtime database migration is achieved by implementing blue-green deployment strategies, allowing schema changes and data transformations to proceed without interrupting active service.

Can I use this for schema migrations with TypeORM, Prisma, and Sequelize?

Yes, this supports ORM-agnostic database migrations across Sequelize, TypeORM, and Prisma, leveraging SQL and ORM-specific scripts to handle schema changes safely.

What is the best way to rollback a failed database schema migration?

The best way to rollback a failed database schema migration is using the included transaction-based and checkpoint-based rollback mechanisms, ensuring safe and reversible schema evolution.

How do I safely add and transform data in a new column during a migration?

To safely add and transform data during a migration, you leverage schema transformation and data manipulation scripts to add columns, rename fields, or change column types while migrating data formats.

When do I need a transaction-based rollback for database schema changes?

You need a transaction-based rollback for database schema changes when performing risky data transformations or column type alterations, ensuring the database can revert to a safe checkpoint if failures occur.