prisma/prisma v8.0.0-rc.19: PSL_GENERATOR_IN_DEFAULT error
- Investigating(current)
- Trending(upcoming)
- Workaround available(upcoming)
- Resolved(upcoming)
Executive summary
The upgrade to prisma/prisma v8.0.0-rc.19 introduced a breaking change where the use of @default(uuid()), @default(cuid(2)), @default(ulid()), and @default(nanoid()) in Prisma client generators is now rejected with PSL_GENERATOR_IN_DEFAULT error. The app recipe provides a script to rewrite schema files accordingly.
No verified workaround yet
None of the linked reports describe a mitigation. Follow this incident to hear when one appears.
Official fixUnder active investigation. No report has identified a root cause yet.
Evidence
2 reports · 2 GitHubShow
- [1]GitHub First reportprisma/prisma v8.0.0-rc.19: breaking changes(opens GitHub issue in a new tab)
The upgrade recipes for this hop: the app recipe and the extension recipe. Each breaking change below names the change ids to look for in them. Breaking changes Client generators are written @onCreate(...) and @onUpdate(...), and @default means a database default. @default(uuid()), @default(cuid(2)), @default(ulid()) and @default(nanoid()) are refused with PSL_GENERATOR_IN_DEFAULT. Write @onCreate(uuid()) and so on instead. The app recipe ships a script that rewrites your Prisma 8 schema…
by github-actions[bot] 0upvotes 0comments
- [2]GitHubprisma/prisma v8.0.0-rc.20: breaking changes(opens GitHub issue in a new tab)
The upgrade recipes for this hop: the app recipe and the extension recipe. Each breaking change below names the change ids to look for in them. Breaking changes A piped ORM command prints data lines, not JSON, unless you pass --json. The ORM toolchain now requires @prisma/cli-engine 0.9.0, up from 0.7.0, the engine the prisma CLI ships since 8.0.0-rc.25. This engine picks the output format from flags only. When stdout is a pipe, a file, $(…), a CI log or an agent, a command used to print JSON.…
by github-actions[bot] 2upvotes 0comments94% match
Timeline
- First report on GitHub issue
prisma/prisma v8.0.0-rc.19: breaking changes
Source