UNPKG

node-pg-migrate

Version:

PostgreSQL database migration management tool for node.js

8 lines (7 loc) 550 B
import type { MigrationOptions } from '../../types'; import type { Name, Reversible } from '../generalTypes'; import type { DropConstraintOptions } from './dropConstraint'; import type { ConstraintOptions } from './shared'; export type CreateConstraintFn = (tableName: Name, constraintName: string | null, constraintExpressionOrOptions: (ConstraintOptions & DropConstraintOptions) | string) => string; export type CreateConstraint = Reversible<CreateConstraintFn>; export declare function addConstraint(mOptions: MigrationOptions): CreateConstraint;