migrations
Generate a SQL migration script from a free-text intent
Parse a plain-English migration intent (e.g. 'add index on positions(deviceid, fixtime desc)') and emit dialect-correct up + down SQL plus warnings. Never executes — output is for the caller to review and run manually. Costs 1 quota unit per call. Build tier (or higher) required.
post/v1/migrations/generate
Request
- Base URL: https://data.thinair.co
- URL: https://data.thinair.co/v1/migrations/generate
- Auth: API key in header x-api-key
Request body
Example request
{
"connection": "fleet",
"intent": "add nullable notes column to vehicles"
}Response
Generated migration. Always review data.warnings[] before running — some operations (drop column, create unique index) are destructive or fail when constraints aren't met.
Changes
No recorded changes to this operation across all 1 revision of this API.