node-pg-migrate
Version:
PostgreSQL database migration management tool for node.js
9 lines (8 loc) • 400 B
TypeScript
import type { MigrationOptions } from '../../migrationOptions';
import type { Name } from '../generalTypes';
export interface AlterTableOptions {
levelSecurity?: 'DISABLE' | 'ENABLE' | 'FORCE' | 'NO FORCE';
unlogged?: boolean;
}
export type AlterTable = (tableName: Name, tableOptions: AlterTableOptions) => string;
export declare function alterTable(mOptions: MigrationOptions): AlterTable;