Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Migration

Index

Constructors

constructor

  • new Migration(name: string, schema: string, upSqlPath: string, downSqlPath?: string | null): Migration
  • Parameters

    • name: string
    • schema: string
    • upSqlPath: string
    • Default value downSqlPath: string | null = null

    Returns Migration

Properties

Protected downQueryFile

downQueryFile: QueryFile | null = null

Protected downSqlPath

downSqlPath: string | null

name

name: string

Protected schema

schema: string

Protected upQueryFile

upQueryFile: QueryFile

Protected upSqlPath

upSqlPath: string

Methods

down

  • down(pgp: IDatabase<__type>): Promise<void>

Private loadQueryFile

  • loadQueryFile(filepath: string): QueryFile

up

  • up(pgp: IDatabase<__type>): Promise<void>