Sites

Preview what deploying would change about the schema

Changed on

The difference between the development database and the live one, described before it is applied — the statements, what they mean in plain language, and whether anything would be lost. Nothing runs. Show this to the user before deploying: a schema change that only becomes visible once it has happened is one nobody gets to object to.

get/sites/{id}/db/schema/plan

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Response

Planned schema change

object required
object, string
up_to_date, boolean

The live database already matches; deploying would change nothing.

summary, string[]

What the change means, in language a non-technical merchant can act on.

statements, string[]

The DDL that would run.

notes, string[]

Anything that would be removed or rebuilt.

destructive, boolean
sql, string nullable

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    1 more change in this revision