MigrationsList defines a list with migration definitions

Hierarchy

  • MigrationsList

Methods

  • Add adds adds an existing migration definition to the list.

    If m.File 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

    Returns void

  • Copy copies all provided list migrations into the current one.

    Parameters

    Returns void

  • 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: ((txApp) => void)
        • (txApp): void
        • Parameters

          Returns void

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

          Returns void

    • Rest ...optFilename: string[]

    Returns void

Generated using TypeDoc