mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
Fix node-pg-migrate, add #noTransaction() method.
This commit is contained in:
2
types/node-pg-migrate/index.d.ts
vendored
2
types/node-pg-migrate/index.d.ts
vendored
@@ -66,6 +66,8 @@ export interface MigrationBuilder {
|
||||
|
||||
sql(sql: string, args?: object): void;
|
||||
func(sql: string): PgLiteral;
|
||||
|
||||
noTransaction(): void;
|
||||
}
|
||||
|
||||
export default function(options: any): Promise<void>;
|
||||
|
||||
@@ -58,3 +58,5 @@ pgm.addColumn({ schema: 'schema', name: 'table' }, {
|
||||
onUpdate: '',
|
||||
}
|
||||
});
|
||||
|
||||
pgm.noTransaction();
|
||||
|
||||
Reference in New Issue
Block a user