database-migration

Migrate database schemas and data across Sequelize, TypeORM, and Prisma.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill database-migration-leonardoteodoroo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migration
Source: https://github.com/leonardoteodoroo/amino-advanced/tree/main/.agent/skills/database-migration
Command: npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill database-migration-leonardoteodoroo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Master database schema and data migrations across ORMs (Sequelize, TypeORM, Prisma), including rollback strategies and zero-downtime deployments.

Core Features & Use Cases

  • Cross-ORM Migrations: Manage schema changes across Sequelize, TypeORM, and Prisma with safe rollbacks.
  • Schema Transformations: Add, rename, or modify columns with zero-downtime patterns.
  • Data Transformations: Migrates and rewrites data to fit new models while preserving integrity.
  • Rollback Strategies: Include transactional migrations and checkpoint-based or backup-based rollback options.

Quick Start

Create a minimal end-to-end migration that adds a users table with id, email, and timestamps using Sequelize, including up and down scripts and commands to apply and rollback.

Frequently Asked Questions about database-migration

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

FAQPage Schema
How do I perform zero-downtime database migrations across different ORMs?

Zero-downtime database migrations across ORMs require deterministic scripts, transactional safety, and backups to apply schema changes without service interruption. This approach provides patterns for schema transformations and data rewrites across Sequelize, TypeORM, and Prisma.

What is the best way to rollback schema changes in TypeORM or Prisma?

Rollback schema changes in TypeORM or Prisma are best handled using transactional migrations with checkpoint-based or backup-based rollback options. These strategies ensure data integrity by safely reverting schema transformations and data modifications if a deployment fails.

Can I use a single migration strategy for both Sequelize and Prisma?

You can use a single cross-ORM migration strategy for Sequelize and Prisma by focusing on shared patterns for schema changes and data transformation. This approach specifies cross-database compatibility requirements, ensuring deterministic scripts and transactional safety across different environments.

How do you handle data transformations during database schema migrations?

Data transformations during database schema migrations are handled by rewriting data to fit new models while preserving integrity. This process involves transactional data migrations that safely map and transform existing records to match the updated schema structure without data loss.

When do I need deterministic scripts for database migrations?

Deterministic scripts for database migrations are needed when executing schema changes and data transformations across different ORMs to guarantee consistent results. They ensure transactional safety and cross-database compatibility, preventing unpredictable state changes during zero-downtime deployments.