Skip to content

Commit 8cfc7b3

Browse files
committed
fix: read disableTransactions flag from the current schema class
1 parent c3c11ea commit 8cfc7b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/migration/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export class MigrationRunner extends EventEmitter {
225225
*/
226226
private async executeMigration(migration: FileNode<unknown>) {
227227
const SchemaClass = await this.getMigrationSource(migration)
228-
const client = await this.getClient(BaseSchema.disableTransactions)
228+
const client = await this.getClient(SchemaClass.disableTransactions)
229229

230230
try {
231231
const schema = new SchemaClass(client, migration.name, this.dryRun)

0 commit comments

Comments
 (0)