Options
All
  • Public
  • Public/Protected
  • All
Menu

Manages single-run patches/migrations.

Hierarchy

Index

Constructors

constructor

Properties

Protected Readonly bus

Protected Readonly injector

injector: Container

Protected Readonly migrations

migrations: Migrations

Methods

Protected applied

  • applied(migration: Migration): Promise<void>

apply

Protected applying

  • applying(migration: Migration): Promise<void>

Protected filterAppliedMigrations

  • filterAppliedMigrations(identifiers: string[]): Promise<string[]>
  • Given a list of migration identifiers, filter out those that have been applied.

    Parameters

    • identifiers: string[]

    Returns Promise<string[]>

Protected filterPendingMigrations

  • filterPendingMigrations(identifiers: string[]): Promise<string[]>
  • Given a list of migration identifiers, filter out those that have not been applied.

    Parameters

    • identifiers: string[]

    Returns Promise<string[]>

Protected getAllMigrationIdentifiers

  • getAllMigrationIdentifiers(): string[]

Abstract getLastApplyGroup

Abstract has

initialize

Abstract markApplied

  • Should mark the given migrations as being applied.

    If a date is specified, then that is the timestamp when the migrations were applied, otherwise, use new Date().

    Parameters

    Returns Awaitable<void>

migrate

  • migrate(identifiers?: string[]): Promise<void>
  • Apply pending migrations.

    If identifiers are specified, only the pending migrations with those identifiers are applied. If none are specified, all pending migrations will be applied.

    Parameters

    • Optional identifiers: string[]

    Returns Promise<void>

rollback

  • rollback(identifiers?: string[]): Promise<void>
  • Rollback applied migrations.

    If specified, only applied migrations with the given identifiers will be rolled back. If not specified, then the last "batch" of applied migrations will be rolled back.

    Parameters

    • Optional identifiers: string[]

    Returns Promise<void>

Protected rolledBack

  • rolledBack(migration: Migration): Promise<void>

Protected rollingBack

  • rollingBack(migration: Migration): Promise<void>

undo

Abstract unmarkApplied

Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.