1. Tasks
  2. StubberDB Apply Migrations

Tasks

StubberDB Apply Migrations

Applies pending migrations to a StubberDB branch

Basic usage

loading...

Parameters

stubberdbuuid
required
string

The StubberDB UUID to apply migrations for.


branch
required
string

The branch to apply migrations against.

StubberDB commonly uses the draft and live branches.

NOTE

Migrations must first be applied to the draft branch before they can be applied to the live branch.

Result

loading...

Properties

message
string

Confirms that migrations were applied successfully.


payload.stubberdbuuid
string

The StubberDB UUID the migrations were applied against.


payload.branch
string

The branch the migrations were applied to.


payload.schema_name
string

The database schema name that was updated.


payload.applied_migrations
array

An ordered list of migration names that were applied during the task run.

Examples

Apply migrations to the live branch

Use this after the same migrations have already been applied to draft.

loading...