NestJS‑TypeORM Integration: Should Migrations Execute Inside Automatic Transactions?
The goal is to guarantee that a schema‑change migration can be rolled back completely when it fails, preserving database consistency in a NestJS application that relies on TypeORM for data access. By default TypeORM’s Migration interface runs SQL statements outside any NestJS‑managed transaction, so developers must manually start, commit, or roll back a Quer