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

Schema: add validation for datasource property referentialIntegrity & relationMode, so only one can be set. #15735

Closed
Jolg42 opened this issue Oct 11, 2022 · 0 comments · Fixed by prisma/prisma-engines#3340
Assignees
Milestone

Comments

@Jolg42
Copy link
Member

Jolg42 commented Oct 11, 2022

Currently, the following is valid

datasource db {
  provider = "sqlite"
  url = "..."
  relationMode = "prisma" // we take relationMode in priority
  referentialIntegrity = "foreignKeys" // is ignored
}

We want to make it invalid, so only relationMode or referentialIntegrity can be used.

Note that we also want to deprecate referentialIntegrity property, see #15689

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