Database Migration Playbook
Zero-downtime schema and data migration runbook — design with expand/contract, backups and rehearsal on production-like data, locking and performance checks, staged execution, verification, rollback and cleanup — with human approval before production changes.
What it does
Zero-downtime schema and data migration runbook — design with expand/contract, backups and rehearsal on production-like data, locking and performance checks, staged execution, verification, rollback and cleanup — with human approval before production changes.
- Category
- workflowdatabasemigration
- Platforms
- backendgeneric
- Frameworks and tools
- postgresqlsql
- Capabilities
- orchestrationplanningdatabase
Example tasks
- “Split the users.name column into first_name and last_name on a 200 million row table with zero downtime.”
- “Plan adding a NOT NULL column with a default to a hot table safely.”
- “Migrate from a self-managed Postgres to a managed instance with minimal downtime and a tested rollback.”
Works with
Recommended alongside
Permissions summary
Files
Reads files only
Shell
No shell commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Adapter | docs/development/playbooks/<id>.md |
| OpenAI Codex | Adapter | docs/development/playbooks/<id>.md |
| Cursor | Adapter | .cursor/rules/<id>.mdc |
| VS Code (Copilot) | Adapter | docs/development/playbooks/<id>.md |
| Generic markdown | Adapter | docs/forgekit/playbooks/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
What is inside
This is a premium component, so its prompt is delivered only through signed downloads to licensed accounts. Here is the outline of its sections (79 lines in total).
- 01Database Migration Playbook
- 02Roles
- 03Phase 1: Define and classify (gate G1)
- 04Phase 2: Design with expand/contract (gate G2)
- 05Phase 3: Backup and rehearsal (gate G3)
- 06Phase 4: Application readiness (gate G4)
- 07Phase 5: Go / no-go (user decision)
- 08Phase 6: Execute (production, human-supervised)
- 09Rollback
- 10Phase 7: Verify and clean up
- 11Common pitfalls to check every time
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — Database Migration Playbook
1.0.0
- Initial release.