Run migrations (DESTRUCTIVE)
run_migrationRun CodeIgniter database migrations. Specify direction (up/down) and optional migration name to execute schema changes.
Instructions
Runs framework migrations (up/down) through the project's native migration runner (spec: php bin/migrate; ci4: php spark migrate). DESTRUCTIVE OPERATION: requires an explicit confirm: true. Without that flag nothing is executed.
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": {
"direction": "<direction>",
"confirm": "<confirm>"
},
"name": "run_migration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | ||
| direction | Yes | ||
| migrationName | No |