UNPKG

pg-flyway

Version:

Migration tool for PostgreSQL database, NodeJS version of Java migration tool - flyway (not wrapper for https://flywaydb.org/documentation/commandline)

32 lines (31 loc) 992 B
import { Migration } from '../types/migration'; export type History = { installed_rank: number; version: number; description: string; type: string; script: string; checksum: number; installed_by: string; installed_on: Date; execution_time: number; success: boolean; }; export declare class HistoryTableService { private readonly historyTable?; private readonly historySchema?; constructor(historyTable?: string | undefined, historySchema?: string | undefined); getCreateHistoryTableSql(): string; getMigrationsHistorySql(): string; private getFullHistoryTableName; getNextInstalledRankSql(): string; getBeforeRunMigrationSql({ migration, installed_rank }: { migration: Migration; installed_rank: number; }): string; getAfterRunMigrationSql({ installed_rank, execution_time, success, }: { installed_rank: number; execution_time: number; success: boolean; }): string; }