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

Commit 3f2a02c

Browse files
committed
fixed migrationsTransactionMode in MigrationRevertCommand
1 parent 7953ebb commit 3f2a02c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/MigrationRevertCommand.ts

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

5656
const options = {
57-
transaction: "all" as "all" | "none" | "each",
57+
transaction: connectionOptions.migrationsTransactionMode ?? "all" as "all" | "none" | "each",
5858
};
5959

6060
switch (args.t) {

0 commit comments

Comments
 (0)