From a2a1bc5720b68bcdec02b77767cacf0f0a1faf24 Mon Sep 17 00:00:00 2001 From: Bradley Ayers Date: Wed, 16 Aug 2017 14:52:06 +1000 Subject: [PATCH] Fix node-pg-migrate, add #noTransaction() method. --- types/node-pg-migrate/index.d.ts | 2 ++ types/node-pg-migrate/node-pg-migrate-tests.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/types/node-pg-migrate/index.d.ts b/types/node-pg-migrate/index.d.ts index 40f09875fa..07c20ab3fa 100644 --- a/types/node-pg-migrate/index.d.ts +++ b/types/node-pg-migrate/index.d.ts @@ -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; diff --git a/types/node-pg-migrate/node-pg-migrate-tests.ts b/types/node-pg-migrate/node-pg-migrate-tests.ts index aacb6b325c..c3f1edf9b8 100644 --- a/types/node-pg-migrate/node-pg-migrate-tests.ts +++ b/types/node-pg-migrate/node-pg-migrate-tests.ts @@ -58,3 +58,5 @@ pgm.addColumn({ schema: 'schema', name: 'table' }, { onUpdate: '', } }); + +pgm.noTransaction();