Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 7953ebb

Browse files
fix: use migrationsTransactionMode while running migration from cli (typeorm#7576)
1 parent 974d2d4 commit 7953ebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/MigrationRunCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class MigrationRunCommand implements yargs.CommandModule {
5555
connection = await createConnection(connectionOptions);
5656

5757
const options = {
58-
transaction: "all" as "all" | "none" | "each",
58+
transaction: connectionOptions.migrationsTransactionMode ?? "all" as "all" | "none" | "each",
5959
};
6060

6161
switch (args.t) {

0 commit comments

Comments
 (0)