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

It's possible to create recipes with the same name #1

Open
arimendelow opened this issue Jan 29, 2023 · 0 comments
Open

It's possible to create recipes with the same name #1

arimendelow opened this issue Jan 29, 2023 · 0 comments

Comments

@arimendelow
Copy link
Contributor

It's possible to create recipes with the same name. This is because of the following (from the Prisma docs):

  • All fields that make up the unique constraint must be mandatory fields.
  • The reason for this behavior is that all connectors consider null values to be distinct, which means that two rows that look identical are considered unique

The uniqueness check is currently done on the database level, and on the deletedAt attribute, which by default, obviously, is null.

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

No branches or pull requests

1 participant