Tasks
StubberDB Apply Migrations Task
Applies pending migrations to a StubberDB branch
This task and feature is still in early access and may be subject to change. Please reach out to your Stubber representative if you are interested in using or learning more about this task.
Basic usage
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.
Migrations must first be applied to the draft branch before they can be applied to the live branch.
Result
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.