home/productivity/database-migration-helper

Database Migration Helper

GPTClaudeDeepSeek··651 copies·updated 2026-07-14
database-migration-helper.prompt
# Prompt: Zero-Downtime Database Migration Helper

**Purpose:** Plan and execute complex database migrations with zero downtime using the expand-contract pattern, blue-green deployments, and automated rollback strategies.

**Best For:** Production database schema changes, PostgreSQL/MySQL migrations, data backfills without locks

**Model Recommendation:** Claude Sonnet 4.5, Claude Opus 4

**Usage Instructions:**
1. Paste your current schema + desired target schema.
2. Include the migration framework you use (Alembic, Flyway, Prisma Migrate, etc.).
3. Share your traffic pattern (peak hours, estimated row count).

---

## THE PROMPT

when to use it

Community prompt sourced from the open-source GitHub repo m0shaban/enterprise-ai-prompts (MIT). A "Database Migration Helper" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

m0shaban/enterprise-ai-prompts · MIT