migrate-diff
Generate migration files by comparing current database schema to desired state for managing schema changes.
Instructions
Generate a new migration file by comparing current state to desired schema
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": {
"to": "<to>"
},
"name": "migrate-diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Desired schema state (file:// or schema HCL) | |
| devUrl | No | URL for dev database to compute diff | |
| dirUrl | No | URL to migration directory | |
| name | No | Name for the new migration file | |
| edit | No | Open editor for manual changes | |
| format | No | Output format: text or json |