node-pg-migrate
Version:
PostgreSQL database migration management tool for node.js
12 lines (9 loc) • 641 B
TypeScript
import { M as MigrationOptions } from '../../migrationOptions-BgtOZlq1.js';
import { R as Reversible, N as Name, T as Type } from '../../generalTypes-BlKhVJMl.js';
import { DropTypeAttributeOptions } from './dropTypeAttribute.js';
import '../../logger.js';
import '../../utils/createTransformer.js';
type AddTypeAttributeFn = (typeName: Name, attributeName: string, attributeType: Type & DropTypeAttributeOptions) => string;
type AddTypeAttribute = Reversible<AddTypeAttributeFn>;
declare function addTypeAttribute(mOptions: MigrationOptions): AddTypeAttribute;
export { type AddTypeAttribute, type AddTypeAttributeFn, addTypeAttribute };