Skip to main content
POST
Create and Execute Database Migration

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
version
string
required

Numeric migration version. Accepts Drizzle-style sequential prefixes (e.g. 0001) or a YYYYMMDDHHmmss timestamp. Versions are compared numerically.

Maximum string length: 64
Pattern: ^\d{1,64}$
name
string
required

Migration name

Minimum string length: 1
sql
string
required

SQL text to parse and execute immediately

Minimum string length: 1

Response

Migration executed and recorded successfully

version
string
required
Pattern: ^\d{1,64}$
name
string
required
statements
string[]
required
createdAt
string<date-time>
required
message
string
required