MIGRATE_DESTRUCTIVE_BLOCKED
What it means. The migration would drop or rewrite existing data and was not applied.
What to do. Make the migration additive (add columns/tables instead of dropping or renaming), or re-run deploy with allow_destructive_migration: true after the owner confirms.
- HTTP status: 422
- Retryable after applying the fix: yes
Every failure from the CLI or an MCP tool has this shape:
{
"ok": false,
"code": "MIGRATE_DESTRUCTIVE_BLOCKED",
"message": "The migration would drop or rewrite existing data and was not applied.",
"fix": "Make the migration additive (add columns/tables instead of dropping or renaming), or re-run deploy with allow_destructive_migration: true after the owner confirms.",
"file": "<where to edit, when known>",
"retryable": true,
"docs": "https://docs.uarpie.app/errors/MIGRATE_DESTRUCTIVE_BLOCKED"
}
Apply fix (edit file when it is given), then run the same command again.