im all setup but strange it still allows nullable ...
# developers
m
im all setup but strange it still allows nullable emails to save?
message has been deleted
allow nullable is not checked
email is null in prisma
Copy code
$ yarn db-migrate
yarn run v1.23.0-20200615.1913
$ yarn prisma migrate dev
$ C:\Users\Matt\Documents\GitHub\cal.com-main\node_modules\.bin\prisma migrate dev
Environment variables loaded from .env
Prisma schema loaded from schema.prisma
Datasource "db": PostgreSQL database "postgres", schema "public" at "<http://db.x.supabase.co:5432|db.x.supabase.co:5432>"

Already in sync, no schema change or pending migration was found.

āœ” Generated Prisma Client (3.15.2 | library) to .\..\..\node_modules\@prisma\client in 322ms
āœ” Generated Zod Schemas (0.5.4) to .\zod in 467ms


Done in 32.61s.
and now that there's a null email in the database, an empty email will not save anymore on my self hosted instance. so thats nice lol
z
undefined !== null. This also seems like a prisma studio bug