Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 150-introspection.mdx #3961

Closed
wants to merge 1 commit into from

Conversation

NicolaGenesinJetty
Copy link

Virtual fields are removed for planetscale

Describe this PR

Changes

What issue does this fix?

Any other relevant information

Virtual fields are removed for planetscale
@vercel
Copy link

vercel bot commented Oct 28, 2022

@NicolaGenesinJetty is attempting to deploy a commit to the Prisma Team on Vercel.

A member of the Team first needs to authorize it.

@janpio
Copy link
Member

janpio commented Nov 1, 2022

Did you open a bug report in prisma/prisma about this? That should probably not be happening - so a description of what you are seeing would be interesting.

@Jolg42
Copy link
Member

Jolg42 commented Nov 2, 2022

@Jolg42
Copy link
Member

Jolg42 commented Nov 2, 2022

@NicolaGenesinJetty Could you check your schema? It should look like this:

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["referentialIntegrity"]
}

datasource db {
  provider     = "mysql"
  url          = env("DATABASE_URL")
  relationMode = "prisma" // <--- Make sure that this line is present
}

This is mentioned in the first step here https://www.prisma.io/docs/getting-started/setup-prisma/add-to-existing-project/relational-databases/connect-your-database-typescript-planetscale

Maybe it could use a reminder on https://www.prisma.io/docs/getting-started/setup-prisma/add-to-existing-project/relational-databases/introspection-node-planetscale

@NicolaGenesinJetty
Copy link
Author

NicolaGenesinJetty commented Nov 2, 2022

@Jolg42 I was missing that relationMode line. I've added it but npx prisma db pull removes virtual relations anyway.

@Jolg42
Copy link
Member

Jolg42 commented Nov 2, 2022

@NicolaGenesinJetty Could you give us info we can use to get to a reproduction? We are very interested into checking this.

The best would be to open a bug report here

@NicolaGenesinJetty
Copy link
Author

whoops I just checked the "Describe this PR" and it's empty. Weird, sorry about this.

Submitted bug report with more infos here prisma/prisma#16100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants