Hierarchy

  • Client

Constructors

Properties

authToken: string
endpoint: string
name?: string
scheduledMigrations: Migrations[]
wasExecuted: boolean = false

Methods

  • Apply custom schema changes, eg. output from getEnvironmentDiff method

    Parameters

    • data: Migrations[]

    Returns void

  • Returns all migrations that would have been sent on submit

    Returns Migrations[]

  • Returns the schema difference between the current environment and target environment as migrations

    Parameters

    • targetEnvironment: string

    Returns Promise<Migrations[]>

  • Submits all scheduled migrations to the management server

    Foreground

    Wait until the migrations are scheduled and executed. If false the migrations will be submitted, but the result won't be awaited.

    Parameters

    • foreground: boolean = true

    Returns Promise<MigrationInfo>

Generated using TypeDoc