question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preview feature feedback: Prisma multi schema support (`multiSchema`)

See original GitHub issue

Here are details on how the preview feature for multi schema support currently works in Prisma: https://github.com/prisma/prisma/issues/1122#issuecomment-1231773471

Please share your feedback about the multiSchema functionality released in v4.3.0 in this issue.

  • If you encounter a bug, please open a bug report in this repo.
  • If the feature is working well for you, please share this in a comment below or leave a 👍 on this issue.

If you have any questions, don’t hesitate to ask them in the #prisma-client channel in the Prisma Slack.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:15
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
janpiocommented, Sep 7, 2022

This will work later @shaked420 - it is a known limitation right now. You will need give the models different names, and then use @@schema and @@map to point to the correct schema and table for each. (Fields are not affected by this at all.)

3reactions
Faithfindercommented, Sep 5, 2022

Well, not sure why you need to list the schemas in datasource. Just marking the models should be enough?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use Prisma with multiple database schemas
Multi -schema support is currently in preview. To enable the multiSchema preview feature, add the multiSchema feature flag to the previewFeatures field of ......
Read more >
Prisma Client and Prisma schema preview features
When we release a new Prisma Client or Prisma schema feature, it often starts in preview so that you can test it and...
Read more >
Upgrading to use Preview features (Guides) - Prisma
Preview features are new features that can only be used by opting in using a corresponding feature flag. Enabling preview features.
Read more >
Referential actions - Prisma
Prisma support of referential actions removes the safety net in Prisma Client that prevents cascading deletes at runtime. If you use the feature...
Read more >
What Prisma doesn't have yet - DEV Community ‍ ‍
Tagged with prisma, webdev, discuss, opensource. ... Preview feature feedback: Prisma multi schema support (`multiSchema`) #15077.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found