UNPKG

node-pg-migrate-custom

Version:

Postgresql database migration management tool for node.js

15 lines (14 loc) 669 B
import { DropOptions, IfNotExistsOption } from './generalTypes'; export interface CreateSchemaOptions extends IfNotExistsOption { authorization?: string; } declare type CreateSchemaFn = (schemaName: string, schemaOptions?: CreateSchemaOptions & DropOptions) => string | string[]; export declare type CreateSchema = CreateSchemaFn & { reverse: CreateSchemaFn; }; export declare type DropSchema = (schemaName: string, dropOptions?: DropOptions) => string | string[]; declare type RenameSchemaFn = (oldSchemaName: string, newSchemaName: string) => string | string[]; export declare type RenameSchema = RenameSchemaFn & { reverse: RenameSchemaFn; }; export {};