pg-node-migrations
Version:
Based on the work on ThomWright's postgres migration package. Adds the ability to specify a schema and table name.
6 lines (5 loc) • 347 B
TypeScript
import { Migration } from "./types";
/** Assert migration IDs are consecutive integers */
export declare function validateMigrationOrdering(migrations: Array<Migration>): void;
/** Assert hashes match */
export declare function validateMigrationHashes(migrations: Array<Migration>, appliedMigrations: Record<number, Migration | undefined>): void;