Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+20 more

    Migration Safety Pro

    2

    **Run ALTER TABLE on a 10-million-row table without locking writes, losing data, or spending 3 hours writing rollback scripts.**

    $5

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    0 installsSecurity scanned
    migration-safety-pro

    migration-safety-pro

    Example session with this skill installed

    We need to add a normalized_email column to the users table (8M rows) using Prisma. Zero downtime.

    • Read your context and instructions
    • Compiled the migration-safety-pro

    Detected stack: Prisma + PostgreSQL. Strategy: Expand-Contract.

    Phase 1 (Expand): ALTER TABLE users ADD COLUMN normalized_email VARCHAR(255); — nullable, no lock. Deploy code that writes to BOTH email and normalized_email.

    Phase 2 (Backfill): Batch update 500 rows/commit with UPDATE users SET normalized_email = LOWER(email) WHERE normalized_email IS NULL LIMIT 500; — estimated 4.5 hours for 8M rows.

    Phase 3 (Contract): After backfill verified (0 nulls), ALTER TABLE users ALTER COLUMN normalized_email SET NOT NULL; CREATE UNIQUE INDEX CONCURRENTLY ix_users_normalized_email ON users(normalized_email); — deploy code reading from normalized_email only. Remove old writes. Feature flag cleanup after 72h validation.

    Rollback: ALTER TABLE users DROP COLUMN normalized_email; — instant, zero data loss.
    Pre-deployment checklist: ✅ Backup verified, ✅ Stagi

    Connects securely to your tools. The creator never sees your data.

    What you get

    Adding a new required column to a production table with millions of rows without downtimeRenaming a column across a monorepo where multiple ORMs connect to the same databaseImplementing a soft-delete pattern with Prisma client extensions and a zero-downtime migrationConverting a single-tenant schema to multi-tenant with a new tenantId column and composite unique constraintsSetting up a pre-deployment CI gate that validates migration safety before production deployment

    About this skill

    Run ALTER TABLE on a 10-million-row table without locking writes, losing data, or spending 3 hours writing rollback scripts.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 4 months ago

    • Passed all security checks, Safe to install

    Listed4 months ago
    Updatedtoday

    What's inside

    Frequently Asked Questions