Skip to content

Commit

Permalink
fix: use migrationsTransactionMode while running migration from cli (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
shrujalshah28 authored Apr 24, 2021
1 parent 974d2d4 commit 7953ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/MigrationRunCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class MigrationRunCommand implements yargs.CommandModule {
connection = await createConnection(connectionOptions);

const options = {
transaction: "all" as "all" | "none" | "each",
transaction: connectionOptions.migrationsTransactionMode ?? "all" as "all" | "none" | "each",
};

switch (args.t) {
Expand Down

0 comments on commit 7953ebb

Please sign in to comment.