v1

latestSwagger 2.02026-07-13180103150.2 KB
database

Returns the contents of a named migration for the specified branch.

get/sites/{site_id}/database/migrations/{name}

Query parameters

branchstring

The branch ID to look up the migration on. Defaults to the currently published deploy's branch.

Response

OK

versioninteger

The migration version number

namestring

The migration name

pathstring

The path to the migration file in the deploy bundle

contentstring

The raw contents of the migration file