@prisma/client
7.10.1 · 15 Oct 2026Apache-2.024.6M / weekRepositoryHomepagenpmAtom feed
Upgrading @prisma/client From 2.25.0 to 2.26.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 0
- advisories fixed
- 34
- new
- 0
- fixes
Release by release
- New
It's possible to choose specific referential actions for the foreign keys in relations. Prisma Migrate,
prisma db push, and introspection will set these in the database schema, e.g.@relation(... onDelete: SetNull)will set translate toON DELETE SET NULLon the corresponding foreign key. See Syntax section below. - New
Prisma Migrate,
prisma db push, and introspection will rely on the syntax and default values above to keep the referential actions between Prisma schema and database schema in sync. - New
Prisma Client no longer performs any checks before deleting records when invoking
delete()ordeleteAll()methods. Deleting referenced objects will succeed or not depending on the underlying foreign keys of relations, e.g. by default deletion will be prevented by the database because it's set toON DELETE RESTRICT, but will succeed if set toON DELETE CASCADE. - New
Upgrade path: If developers don't specify custom
onDeleteoronUpdateattributes in the Prisma schema, the next time the database is updated with Prisma Migrate orprisma db push, the database schema will be updated to use the default values on all foreign keys,ON DELETE RESTRICT ON UPDATE CASCADE(ON DELETE NO ACTION ON UPDATE CASCADEon SQL Server). Please note that until then, if the database schema is managed using Prisma Migrate orprisma db push, the existing defaults are probably in place (ON DELETE CASCADE ON UPDATE CASCADE), and this could lead to deletion of records in conditions where a deletion was previously prevented by Prisma Client until the foreign key constraints are updated.
- New
5 other lines we could not sort, mostly version bumps
- 2.26.0
ON DELETE RESTRICT(NO ACTIONon SQL Server) for required relations - 2.26.0
ON DELETE SET NULLfor optional relations - 2.26.0
ON UPDATE CASCADEfor all relations regardless if optional or required. - 2.26.0
June 29th: Workshops
- 2.26.0
June 30th: Talks
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.