MigrationsList defines a list with migration definitions

Hierarchy

  • MigrationsList

Methods

Methods

  • Register adds new migration definition to the list.

    If optFilename is not provided, it will try to get the name from its .go file.

    The list will be sorted automatically based on the migrations file name.

    Parameters

    • up: ((db) => void)
        • (db): void
        • Parameters

          Returns void

    • down: ((db) => void)
        • (db): void
        • Parameters

          Returns void

    • Rest ...optFilename: string[]

    Returns void

Generated using TypeDoc