# prisma/release
Prisma v8.0.0-rc.19
importance: highbreakingmigrationfeatureprerelease
This release introduces significant changes to how client generators, defaults, and contracts are handled, requiring schema and client code updates. Key changes include moving client generators to `@onCreate` and `@onUpdate`, removing `@noCheck`, and ensuring type-constructor arguments are values.
affected
Users of Prisma ORM with custom client generators, date/time defaults, or `@noCheck` annotations are affected and need to update their schemas and client code.
action
Follow the provided upgrade recipes and scripts to update your schemas and client code to match the new syntax and requirements.
release_signals
-Client generators are now written as `@onCreate(...)` and `@onUpdate(...)`, and `@default` means a database default. Existing `@default(uuid())`, `@default(cuid(2))`, `@default(ulid())`, and `@default(nanoid())` will be refused. Use `@onCreate(uuid())` and similar instead.
-Clients now take the contract as a typed value. The `contractJson` option and type argument on client calls are removed. Use `contractFromJson<Contract>(contractJson)` from the facade's `/static` entry and pass `{ contract }`.
-Date, time, interval, and bytes defaults are now written with tags, and each default has one stored form. Quoted defaults for these types are refused, and values must match the column's type.
-`@noCheck` is removed. Lists that allow null elements are now written as `T?[]`. Contracts with `noCheck` keys will no longer load.
-Type-constructor arguments are now values. Quoted numbers in type constructors like `VarChar("255")` are refused; write the number without quotes.
migration_steps5 steps
- 01Run the provided upgrade scripts to rewrite your Prisma 8 schema files.
- 02Update client code to use `contractFromJson<Contract>(contractJson)` and pass the contract as a typed value.
- 03Replace `@default(uuid())` with `@onCreate(uuid())` and similar for other client-generated defaults.
- 04Replace `T[] @noCheck(elementNotNull)` with `T?[]` and remove `@noCheck(membership)`.
- 05Ensure type-constructor arguments are unquoted values, e.g., `VarChar(255)` instead of `VarChar("255")`.
code_snippet
```prisma
model Post {
id String @id @onCreate(uuid(7))
slug String @onCreate(nanoid(12))
}
```# community_signal
How useful is this release to your stack?
—
net score
Sign in with GitHub to cast your vote.
Sign in with GitHub to vote
You’ll return to this release, then choose your vote.