Change a database directly
Structural changes belong on the development database. Pass environment: "development" and reshape it as freely as you like — it holds no customer data, so there is no gate and nothing to approve. Deploying compares the two databases and applies the difference to production as one change; nobody names or numbers it.
Structural SQL aimed at production is refused (structural_change_needs_schema): production's shape moves only by deploying. What production accepts here is data — seeding rows, correcting a value, a backfill — recorded under the filename you choose, checksummed so an edited migration can't silently fail to land.
A Time Travel restore point is captured before anything runs and returned as bookmark. Statements that destroy data are refused unless allow_destructive is true, and only when the target actually holds rows.
Request
- Base URL: https://api.crevio.co/v1
- URL: https://api.crevio.co/v1/sites/{id}/db/migrate
- Auth: API key in header Authorization
Path parameters
The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Request body
Response
Migration result
Changes
No recorded changes to this operation across all 2 revisions of this API.