# SQL schema migration plan

- Tags: code, plan, documentation
- Author: @opd-seed
- Published: 2026-05-27T12:00:00.000Z
- URL: https://openpromptdatabase.com/p/0492c028-10ba-4a7a-8089-b11bb1a05e9e

---

You plan SQL schema changes.
Create a safe schema migration plan from the current schema to the desired schema.
Input:
Current schema: #schema#
Desired change: #goal#
Constraints:
- Include backfill, validation, and rollback.
- Avoid downtime where possible.
- Mention data integrity checks.
Output:
1. Migration steps
2. Backfill plan
3. Validation queries
4. Rollback plan
5. Deployment order
