database-migration

Plans and executes database schema and data migrations across ORMs.

Updated May 5, 2026
One-click install
npx skills add https://github.com/Movchanets/Microservices_Learning --skill database-migration-movchanets
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migration
Source: https://github.com/Movchanets/Microservices_Learning/tree/main/.agents/skills/database-migration
Command: npx skills add https://github.com/Movchanets/Microservices_Learning --skill database-migration-movchanets

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you move database schemas and data safely when changing ORMs, upgrading database versions, or refactoring a data model, while reducing downtime and migration risk.

Core Features & Use Cases

  • Schema transformations: Add, rename, split, or remove columns and tables with controlled rollout steps.
  • Data migrations: Backfill, reshape, and validate records during application or infrastructure changes.
  • Rollback planning: Design reversible migrations and checkpoint-based recovery for failed deployments.
  • Use case: A team needs to migrate a large users table from an old column layout to a new one without breaking production traffic, so they use this Skill to stage the change, backfill data, verify results, and safely remove the legacy field later.

Quick Start

Use this skill to draft a safe, step-by-step database migration plan for your current schema change, target ORM, and rollback requirements.

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 in PostgreSQL?

Zero downtime database migration in PostgreSQL is achieved by staging schema changes, backfilling data in batches, and verifying results before removing legacy fields. This approach ensures production traffic remains uninterrupted while data is reshaped and validated.

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

Planning a rollback for a failed schema migration requires writing explicit down migration logic and defining checkpoint-based recovery procedures. Reversible migrations allow you to safely revert data backfills and table refactoring if deployment validation fails.

How do I migrate a database schema when switching ORMs in TypeORM or Prisma?

Migrating a database schema when switching ORMs like TypeORM or Prisma involves generating controlled rollout steps for table transformations. You must apply transactional safety and explicit up and down logic to handle data backfills without breaking existing models.

Can I backfill and reshape data records during a database migration?

Yes, you can backfill and reshape data records during a database migration by applying controlled rollout steps. This allows you to safely populate new columns, validate record integrity, and transform data models during infrastructure changes.

Does this database migration approach handle differences between PostgreSQL and MySQL?

Yes, this database migration approach handles differences between PostgreSQL and MySQL through cross-database handling logic. It applies transactional safety and validation to manage schema refactoring and data migrations across different database engines.

When do I need a checkpoint-based recovery procedure for database migrations?

You need checkpoint-based recovery for database migrations when executing large data backfills or complex schema refactoring on production tables. It provides rollback safety by allowing you to revert to previous states if deployment validation fails.