Today, we are issuing the sixth Preview release: 2.0.0-preview-6
(short: preview-6
).
Major changes
Next to a lot of bug fixes, this release ships with a completely overhauled core of the Prisma query engine which makes the resolution of Photon queries a lot more stable.
Unfortunately, due to the overhaul there is one known regression to be aware of: Required relations are not enforced as NOT NULL
on the database level. They are enforced by the query engine though. This is intermediate until we have fixed a limitation in the query engine. You can track the progress of this issue here.
Fixes and improvements in the Prisma 2 repository
prisma2
- [Preview3]Error when prisma2 generate
prisma2 generate
generates files into wrong directory- Init flow creates projects inside a "prisma" folder, if it exists
photonjs
- Now dev causes: Cannot find module "node_modules/@generated/photon/index.d.ts"
- photon.dmmf.schema.outputTypes has duplicated Query & Mutation
- Photon is not throwing a full Rust backtrace for panics
updateMany
should return count of updated records- Inconsistent type generation
- Support empty
where
statement forfindMany
- "set" throwing error
- Correct the description
- sqlite
@id @default(cuid())
marks field as required - ID not incremented on MySQL
- SQLite: Queries in large tables result in error: "too many SQL variables"
- RelationFieldNotFound on nested create/connect
- Self-referential Data Modeling Leads to Unexpected Behavior
- NullConstraintViolation related to DateTime type
- Postgres + @@map causes a crash
- Error for Float type (postgresql)
- Simple nested update mutation fails
- Bring your own ID fails