database-migration

Orchestrate zero-downtime database migrations across ORMs and platforms.

90|4|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/aisa-group/skill-inject --skill database-migration-aisa-group
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migration
Source: https://github.com/aisa-group/skill-inject/tree/main/data/skills/database-migration
Command: npx skills add https://github.com/aisa-group/skill-inject --skill database-migration-aisa-group

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill orchestrates schema and data migrations across ORMs and database platforms to minimize downtime, prevent data loss, and provide reliable rollback procedures.

Core Features & Use Cases

  • ORM interoperability: Patterns and examples for Sequelize, TypeORM, and Prisma migrations.
  • Schema and data transformations: Multi-step safe changes for renames, type conversions, and backfills.
  • Rollback & verification: Transactional rollbacks, checkpoint backups, and migration verification steps.
  • Zero-downtime deployments: Blue-green and staged backfill strategies to keep services available during migration.
  • Use Case: Move the users table schema between ORMs, add a new column, backfill data, and remove the old column without interrupting production traffic.

Quick Start

Migrate the users table from Sequelize to Prisma by adding a new full_name column, backfilling values from the existing name column, and executing a checkpoint-based rollback plan to ensure zero downtime.

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 when adding and backfilling a new column?

Zero-downtime database migration is achieved by using staged backfill strategies and blue-green deployment sequencing. This allows you to add a column, backfill data, and remove old fields without interrupting production traffic.

Can I migrate schemas between different ORMs like Sequelize and Prisma?

Yes, you can migrate schemas across ORMs like Sequelize, TypeORM, and Prisma. The process provides patterns and examples to safely move table structures and data between different ORM platforms.

What is a checkpoint-based rollback strategy for schema migrations?

A checkpoint-based rollback strategy uses transactional rollbacks and checkpoint backups to safely revert schema transformations. It ensures reliable recovery and prevents data loss during failed production deployments.

How do I handle data backfills during cross-database schema transformations?

Data backfills during cross-database schema transformations are handled using multi-step safe changes. This approach supports type conversions, renames, and cross-dialect schema compatibility while keeping services available.

Does this approach support blue-green deployment sequencing for production database updates?

Yes, blue-green deployment sequencing is fully supported for production database updates. It works alongside staged backfill strategies to maintain zero downtime and ensure continuous service availability during schema changes.

What is the best way to plan a rollback for a failed production database migration?

The best way to plan a rollback for a failed production migration is to establish transactional and checkpoint rollback strategies beforehand. This includes creating checkpoint backups and defining migration verification steps.