database-migration

Execute database migrations across Sequelize, TypeORM, and Prisma with rollback procedures.

6|2|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/amurata/cc-tools --skill database-migration-amurata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migration
Source: https://github.com/amurata/cc-tools/tree/main/plugins/framework-migration/skills/database-migration
Command: npx skills add https://github.com/amurata/cc-tools --skill database-migration-amurata

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (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 Support: Handles migrations for popular ORMs like Sequelize, TypeORM, and Prisma.
  • Schema Transformations: Safely add, rename, or change column types with zero-downtime strategies.
  • Data Transformation: Migrate and transform data between different formats or structures.
  • Rollback Strategies: Implements robust rollback procedures for safety.
  • Zero-Downtime Deployments: Facilitates complex deployment strategies to avoid service interruption.
  • Use Case: When refactoring your application's data model, use this Skill to safely add new fields, migrate existing data, and eventually remove old fields without affecting users.

Quick Start

Use the database-migration skill to create a new users table using Sequelize.

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 schema migration?

Zero-downtime database schema migration requires adding new fields, migrating existing data, and removing old fields without service interruption. This approach safely adds, renames, or changes column types using strategies that avoid affecting users.

Does this database migration approach support Prisma, TypeORM, and Sequelize?

Yes, database migration supports Sequelize, TypeORM, and Prisma. It handles schema evolution and data integrity across these popular ORMs, allowing you to execute migrations natively within your chosen framework environment.

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

The best way to rollback a failed database schema migration is using robust rollback procedures. These safety mechanisms are implemented to revert schema changes and restore data to its previous state if a migration fails.

How do I transform data when changing column types in an ORM?

To transform data when changing column types in an ORM, you execute data migration procedures that manipulate and convert data between different formats or structures. This ensures data integrity during schema evolution and version upgrades.

When do I need a data transformation process during a database migration?

You need a data transformation process during database migration when refactoring your application's data model to move existing data into new structures. This process safely migrates and transforms data between different formats while maintaining integrity.