create_migration_with_rollback
Create a database migration with both up and down SQL statements, enabling safe rollbacks of schema changes.
Instructions
Create a migration with both up and down SQL for safe rollbacks
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": {
"name": "<name>",
"up_sql": "<up_sql>",
"down_sql": "<down_sql>"
},
"name": "create_migration_with_rollback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Migration name | |
| up_sql | Yes | SQL to apply the migration | |
| down_sql | Yes | SQL to rollback the migration |