---
title: "Schema Migration Generate (x402)"
method: GET
path: "/x402/v2/schema-migration-generate"
tags: ["x402"]
---

# Schema Migration Generate (x402)

`GET /x402/v2/schema-migration-generate`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/x402/v2/schema-migration-generate`
- Auth: none required

Generate database migration code from current→desired schema description. Supports Drizzle, Prisma, Knex, and raw SQL.

## Query parameters

- `orm` string: drizzle/prisma/knex/raw
- `current_schema` string
- `desired_schema` string, required

## Response `200`

Success

- object
  - `orm` string
  - `migration_up` string
  - `migration_down` string
  - `breaking_changes` unknown[]
    - unknown

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
