data-migration

Plans and executes database schema migrations with rollback strategies and data integrity validation.

3|Updated Aug 26, 2026
One-click install
npx skills add https://github.com/Fabric-Pro/fabric-oss --skill data-migration-fabric-pro
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: data-migration
Source: https://github.com/Fabric-Pro/fabric-oss/tree/main/.cursor/skills/data-migration
Command: npx skills add https://github.com/Fabric-Pro/fabric-oss --skill data-migration-fabric-pro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Changing database schemas or moving data between systems risks data loss, downtime, and broken applications. This Skill provides a structured process for planning and executing migrations safely, including backfills, dual-writes, and rollback procedures. ## Core Features & Use Cases - Safe Schema Changes: Follows a proven five-step process (add column, dual-write, backfill, switch reads, drop old column) to avoid downtime. - Data Transformation & Backfill: Guides transforming data between formats and backfilling historical records with SQL examples. - Rollback Planning: Emphasizes rollback strategies and data integrity validation for failed migrations. - Use Case: When renaming or restructuring a column in a production PostgreSQL database, use this Skill to generate a zero-downtime migration plan with backfill SQL and a rollback path. ## Quick Start Ask the AI to plan a zero-downtime migration for renaming the email column in the users table, including backfill SQL and rollback steps.

Frequently Asked Questions about data-migration

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

FAQPage Schema
How do I migrate a database schema without downtime?▼

Zero-downtime migration uses a five-step process: add the new column, dual-write to old and new columns, backfill historical data, switch reads to the new column, then drop the old column. This keeps the application running throughout the change.

How to backfill data during a database migration?▼

Backfill by running an UPDATE statement that copies values from the old column to the new one where the new column is NULL, for example: UPDATE users SET email_new = email WHERE email_new IS NULL. Run backfills in batches for large tables.

What is a dual-write strategy in data migration?▼

Dual-write means the application writes new data to both the old and new columns simultaneously during migration. This keeps both schemas in sync while historical data is backfilled, allowing a safe cutover of reads.

How do I roll back a failed database migration?▼

Rollback by reversing each migration step in order: switch reads back to the old column, stop dual-writes, and drop the new column if needed. Planning rollback procedures before executing the migration is essential for safe recovery.

When should I test migrations in a staging environment?▼

Always test migrations in staging before production, especially for schema changes on large tables, data transformations, and cross-system moves. Staging tests validate backfill correctness, performance impact, and rollback procedures.