migrate-apply
Apply pending database migration files to synchronize schema changes. Specify database URL and migration directory to execute or preview SQL updates.
Instructions
Apply pending migration files to a database
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": {
"url": "<url>"
},
"name": "migrate-apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Database URL (required) | |
| dirUrl | No | URL to migration directory (e.g., file://migrations) | |
| dryRun | No | Print SQL without executing | |
| txMode | No | Transaction mode: none, file, or all | |
| baseline | No | Start from a specific version | |
| allowDirty | No | Allow applying on a non-clean database | |
| format | No | Output format: text or json |