Dry-run a Project Database migration
dry_run_project_database_migrationExecute a proposed migration in one transaction and roll it back, returning the schema impact. No backup is created. PostgreSQL sequence values may advance even when a transaction rolls back. Migration responses include request_review: adding unrelated tables preserves existing approvals; changes to referenced schema objects can interrupt affected Requests. Some changes still invalidate every Request on the datasource: a removed or changed function, a sequence no table owns, a new function whose name already resolves or is named by existing function code, or a stored schema fingerprint the Engine cannot recognize. After apply or an uncertain response, list migration history for recorded affected Requests, current policy states, and review URLs. If request_review.state is unavailable, the recorded migration outcome remains valid but its affected_requests is null; refresh history before resuming applications. Review stale approvals through existing Request review/update flows; do not automatically reapprove or retry application writes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"datasource_id": "<datasource_id>",
"migration_id": "<migration_id>"
},
"name": "dry_run_project_database_migration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| migration_id | Yes | ID returned by propose_project_database_migration | |
| datasource_id | Yes | Project Database datasource UUID |