apply_migration
Apply a SQL migration script and record it in the supabase_migrations.schema_migrations table within a transaction, ensuring atomic schema updates on Aliyun RDS Supabase.
Instructions
Applies a SQL migration script and records it in the supabase_migrations.schema_migrations table within a transaction. Requires direct database connection (DATABASE_URL).
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": {
"version": "<version>",
"sql": "<sql>"
},
"name": "apply_migration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL DDL content of the migration. | |
| name | No | An optional descriptive name for the migration. | |
| version | Yes | The migration version string (e.g., '20240101120000'). |