Description:
I've been trying the Prisma2 multi-tenant with postgres database, But after changing the datamodel
and executing prisma-multi-tenant migrate up
command it shows ✅ Successfuly migrated up all tenants
but datamodel changes are not getting migrated on postgres database.
Similar response for prisma-multi-tenant migrate db up -- --auto-approve
and prisma-multi-tenant migrate db up
commands datamodel changes are not getting migrated to postgres database.
Datamodel:
datasource tenant {
provider = "postgresql"
url = env("PMT_URL")
}
datasource management {
provider = "postgresql"
url = "postgresql://*****:*****@localhost:5432/management"
enabled = false
}
// End of prisma-multi-tenant
generator client {
provider = "prisma-client-js"
}
model User {
UserId String @default(cuid()) @id
FirstName String
LastName String?
Address String?
Email String?
CompanyName String?
NoOfUsers String?
ZipCode String?
Country String?
TestField String?
TestField2 String?
}
model App {
id String @default(cuid()) @id
appId String @default("") @unique
name String
TestField String?
}
Steps to reproduce the issue:
Actual Result:
After executing prisma-multi-tenant migrate up
command it returns ✅ Successfuly migrated up all tenants
, But datamodel changes does not get migrated on postgres database.
Expected Result:
After executing prisma-multi-tenant migrate up
command for specific tenant or all tenant,
datamodel changes should reflect in actual database.
System:
prisma2: "^2.0.0-preview022"
prisma-multi-tenant:"^2.0.0-alpha21"
@prisma/client : "^2.0.0-preview022"
First up the prisma-multi-tenant
library is not supported by the prisma team and still in the alpha phase.
@Errorname I think this is your domain
Yes, thank you @BjoernRave for pinging me!
@SameerChorge94 Can you move your issue to https://github.com/Errorname/prisma-multi-tenant so that I can take a look ? 🙂
Yes, thank you.
So closing this issue and moving to https://github.com/Errorname/prisma-multi-tenant/issues/21
Most helpful comment
Yes, thank you @BjoernRave for pinging me!
@SameerChorge94 Can you move your issue to https://github.com/Errorname/prisma-multi-tenant so that I can take a look ? 🙂