UNPKG

pg-node-migrations

Version:

Based on the work on ThomWright's postgres migration package. Adds the ability to specify a schema and table name.

11 lines (10 loc) 385 B
import { Logger, Migration } from "./types"; /** * Load the migration files and assert they are reasonably valid. * * 'Reasonably valid' in this case means obeying the file name and * consecutive ordering rules. * * No assertions are made about the validity of the SQL. */ export declare const loadMigrationFiles: (directory: string, log?: Logger) => Promise<Array<Migration>>;