Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface StateScript

The functions that the sequential-migrate CLI use to understand and set the migrations that have been applied. You should write these, so that you can save the migration state wherever you like.

Hierarchy

  • StateScript

Index

Methods

add

  • Will be called after a migration takes place with information about the added migration. In practice this is a push operation, but you do not need to manage stack logic or ordering.

    Parameters

    Returns Promise<unknown>

get

remove

  • Will be called after a rollback takes place with information about the removed migration. In practice this is a pop operation, but you do not need to manage stack logic or ordering.

    Parameters

    Returns Promise<unknown>

Generated using TypeDoc