Skip to content

Commit

Permalink
fix: fallback runMigrations transaction to DataSourceOptions (#10601)
Browse files Browse the repository at this point in the history
* fix: fallback runMigrations transaction to DataSourceOptions

* chore: format datasource
  • Loading branch information
edrichhans committed Jan 26, 2024
1 parent e224819 commit 0cab0dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/data-source/DataSource.ts
Expand Up @@ -394,7 +394,9 @@ export class DataSource {

const migrationExecutor = new MigrationExecutor(this)
migrationExecutor.transaction =
(options && options.transaction) || "all"
options?.transaction ||
this.options?.migrationsTransactionMode ||
"all"
migrationExecutor.fake = (options && options.fake) || false

const successMigrations =
Expand Down

0 comments on commit 0cab0dd

Please sign in to comment.