Database Migration Helper
# 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 PROMPTwhen 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
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar