Sites

List applied database migrations

Changed on

Every change applied to this database, oldest first. Each carries restore_to — the state the database was in before that change ran — so any of them can be undone with db/restore without anyone having captured a restore point in advance.

get/sites/{id}/db/migrations

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

Query parameters

environment, 'development' | 'production'

Which database to use. A site normally has exactly one, production, and that is the default — the live database the site reads. development is only valid if a separate development database has been provisioned for this site; asking for one that doesn't exist is an error rather than a silent fall back to production. The response echoes the environment that was used.

Response

Applied migrations

object required
object, string
migrations, object[]
migration_count, integer

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

    2 more changes in this revision