[relations & constraints] one-to-one relations, from example User to Profile, both side optional but db push error #17689
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
tech/engines/migration engine
Issue in the Migration Engine
topic: migrate
topic: mongodb
topic: prisma db push
CLI: prisma db push
Bug description
as title:
from example
3rd block of the linked section
https://www.prisma.io/docs/concepts/components/prisma-schema/relations/one-to-one-relations#required-and-optional-1-1-relation-fields
boths sides optional
but when db push, failed push schema state, as error message
wont allow null
How to reproduce
Expected behavior
No response
Prisma information
// Add your schema.prisma
// Add your code using Prisma Client
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: