Database Migration

Manage reversible database schema changes and data migrations with Drizzle ORM.

Updated Feb 12, 2026
One-click install
npx skills add https://github.com/nicanac/reforge --skill database-migration-nicanac
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Database Migration
Source: https://github.com/nicanac/reforge/tree/main/.ai/skills/database-migration
Command: npx skills add https://github.com/nicanac/reforge --skill database-migration-nicanac

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill ensures that database schema changes and data migrations are performed safely and efficiently, preventing data loss and downtime.

Core Features & Use Cases

  • Schema Evolution: Manages the process of adding, modifying, or removing database tables and columns.
  • Data Transformation: Handles the migration of existing data to conform to new schema structures.
  • Use Case: When you need to add a new email column to your users table, this Skill guides you through the process, ensuring existing users are handled correctly and the change is reversible.

Quick Start

Use the database migration skill to generate a new migration file for your schema changes.

Frequently Asked Questions about Database Migration

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

FAQPage Schema
How do I safely add a new column to an existing database table without data loss?

To safely add a database column without data loss, you generate a reversible migration file using Drizzle ORM. This approach ensures schema changes are applied incrementally and can be rolled back if issues occur during deployment.

What is the best way to handle data transformation when modifying database schema structures?

Handling data transformation during a database schema modification requires creating a dedicated migration that updates existing records to conform to the new structure. This Skill guides the process to ensure existing data is mapped correctly and safely.

Does Drizzle ORM support reversible database schema migrations?

Yes, Drizzle ORM supports reversible database schema migrations. This Skill enforces adherence to migration rules including reversibility, ensuring that any structural changes like adding or deleting tables can be safely undone if needed.

How do I generate a new migration file for SQL schema changes?

You generate a new migration file for SQL schema changes by applying your structural modifications to the schema definition and invoking the migration process. This Skill manages the creation of the file while enforcing single changes per migration for safety.

What are the limitations of applying multiple database table changes in a single migration?

Applying multiple database table changes in a single migration limits reversibility and increases risk. This Skill requires single changes per migration to ensure safe schema evolution, preventing data loss and allowing precise rollback during production deployment.