ultimate-backend icon indicating copy to clipboard operation
ultimate-backend copied to clipboard

Feature Request : TypeOrm support for multi-tenancy

Open shajeeck opened this issue 4 years ago • 3 comments

I can see that there is support for MongoDB and ArangoDB. Can we add TypeOrm as well to support multi tenant config with request scope?

shajeeck avatar Apr 30 '20 05:04 shajeeck

@shajeeck sure, but there are some constraints though. What would your approach be for Sql Database migration for new tenants

juicycleff avatar Apr 30 '20 15:04 juicycleff

@juicycleff i am now going ahead with database isolation, TypeOrm and migrations are managed by a separate micro-service for all tenants. As i couldn't find a consistent approach for managing migrations using TypeOrm Migrations for request scoped built into framework, just created a migration-service

shajeeck avatar May 03 '20 05:05 shajeeck

@shajeeck I thought the same too, either way, a migration service is the best route to go

juicycleff avatar May 04 '20 08:05 juicycleff