generate_migration
Generate database migration scripts from schema changes like adding or removing fields, indexes, and modifications. Specify migration name and changes to produce the script.
Instructions
Generate database migration scripts for schema changes
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": {
"migrationName": "<migrationName>",
"changes": "<changes>"
},
"name": "generate_migration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | Array of schema changes | |
| migrationName | Yes | Migration name in snake_case (e.g., add_discount_to_products) |