database

Run database migrations for a deploy

Changed on

Runs database migrations for the specified deploy. Finds the deploy and determines the appropriate branch.

post/sites/{site_id}/database/migrations/{deploy_id}

Request

  • Base URL
    https://api.netlify.com/api/v1
  • URL
    https://api.netlify.com/api/v1/sites/{site_id}/database/migrations/{deploy_id}
  • Auth
    OAuth 2
    Implicit: https://app.netlify.com/authorize

Request body

dry_runboolean

If true, validates migrations without applying them.

Response

OK

Changes