1. Tasks
  2. StubberDB Get Migrations

Tasks

StubberDB Get Migrations

Lists the saved migrations for a StubberDB connection

Basic usage

loading...

Parameters

stubberdbuuid
required
string

The StubberDB UUID to retrieve migrations for.

Result

loading...

Properties

message
string

Confirms that the migrations were retrieved successfully.


payload.migrations
array

The migrations stored for the requested StubberDB.

The list is returned in ascending created_at order.


payload.migrations[].stubberdbmigrationuuid
string

The UUID of the migration.


payload.migrations[].name
string

The saved migration name.


payload.migrations[].script
string

The SQL script stored for the migration.


payload.migrations[].draft_applied
boolean

Whether the migration has been applied to the draft branch.


payload.migrations[].draft_applied_at
string | null

When the migration was applied to draft, or null if it has not been applied.


payload.migrations[].live_applied
boolean

Whether the migration has been applied to the live branch.


payload.migrations[].live_applied_at
string | null

When the migration was applied to live, or null if it has not been applied.