Spencer
PPrisma
•Created by Spencer on 4/11/2025 in #help-and-questions
Parallel Table Names using MuliSchema feature
I'm in the process of deploying some parallel models to new schemas so that we have a sandbox schema to work with until we're ready to do some data migration. I've learned that using the
multischema
feature doesn't include the schema name as part of the contraint names, so I've had to go through and use the map()
function to rename all of my contraints so that they're namespaced to my new schema (e.g. {tablename}_{column_names}_fkey
--> {schemaName}_{tablename}_{column_names}_fkey
this has allowed me to deploy the parallel tables in a new schema, however when i reun npx prisma migrate dev
i still have some outstanding changes that it's trying to apply and I can't figure out what i'm doing wrong or how to rememdy the issue. Curious if anybody has encountered issues with somethign like this
it still seems to continue to get confused with tables with the same name but in different schemas11 replies