mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 06:40:35 +08:00
Merge pull request #19007 from bradleyayers/fix-node-pg-migrate-no-transaction
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