You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have a multiple tenant database structure where I would like to sync up migrations across tenant databases. For example, if I have two databases, A and B, this requires that if database A's migrations succeed, but database B's migrations fail, both database A and B's transactions rollback.
Describe the solution you'd like
In my scenario, I would have a MikroORM instance for each tenant database where I'd like to control commiting and rollback of the transactions.
The migration methods accept a transaction as a option:
migrator.up({ transaction: trx });
A way to pull a transaction from the orm. Currently I do a hacky workaround by doing:
Is your feature request related to a problem? Please describe.
I have a multiple tenant database structure where I would like to sync up migrations across tenant databases. For example, if I have two databases, A and B, this requires that if database A's migrations succeed, but database B's migrations fail, both database A and B's transactions rollback.
Describe the solution you'd like
In my scenario, I would have a MikroORM instance for each tenant database where I'd like to control commiting and rollback of the transactions.
The migration methods accept a transaction as a option:
A way to pull a transaction from the orm. Currently I do a hacky workaround by doing:
This way, I can wait for all the migrations in the different databases to finish and commit the transactions only if all migration instances succeed.
The text was updated successfully, but these errors were encountered: