node-pg-migrate
Version:
PostgreSQL database migration management tool for node.js
11 lines (10 loc) • 489 B
TypeScript
import type { MigrationOptions } from '../../types';
import type { DropOptions, Name } from '../generalTypes';
import type { IndexColumn } from './shared';
export interface DropIndexOptions extends DropOptions {
unique?: boolean;
name?: string;
concurrently?: boolean;
}
export type DropIndex = (tableName: Name, columns: string | Array<string | IndexColumn>, dropOptions?: DropIndexOptions) => string;
export declare function dropIndex(mOptions: MigrationOptions): DropIndex;