Skip to content
Proud to collaborate with Microsoft for Startups

deploy.database.run-migrations ​

Run database migrations for a release through the configured runner backend.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-deployments
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization UUID.
deployment_target_uuiduuidYes—Deployment target UUID.
release_uuiduuidYes—DeploymentRelease UUID.
runner_connection_uuiduuidYes—Runner backend connection UUID.
image_referencestringYes—Image used to run migrations.
commandlistYes—Migration command argv.
envjsonNo—Plain environment variables.
secret_envjsonNo—Secret Manager env mappings.
timeout_secondsintegerNo—Migration timeout.
approval_refstringNo—Approval token or policy ref when migrations require approval.

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo—Echoed organization UUID.
deployment_target_uuiduuidNo—Target UUID.
release_uuiduuidNo—Release UUID.
runner_execution_uuiduuidNo—Runner execution UUID.
statusstringNo—Migration status.
exit_codeintegerNo—Process exit code.
log_refstringNo—Runner log reference.
started_atstringNo—ISO-8601 start time.
completed_atstringNo—ISO-8601 completion time.
failure_reasonstringNo—Failure reason.
failed_stepjsonNo—Failed step envelope.
failed_layerjsonNo—Failed layer envelope.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—launch—
waitingNoNo——Polling the runner execution
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendinglaunchwaiting—
waitingpollwaiting—
waitingcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "deploy.database.run-migrations",
  "initial_data": {
    "organization_uuid": "value",
    "deployment_target_uuid": "value",
    "release_uuid": "value",
    "runner_connection_uuid": "value"
  }
}