# prisma/release
Prisma v8.0.0-rc.20
importance: highbreakingmigrationfeatureprerelease
This release introduces significant breaking changes, including changes to JSON output formatting, contract storage, SQL builder inserts, MongoDB enum syntax, and Supabase role operations. It also adds new features like enhanced type alias support and improved Postgres migrations.
affected
Users relying on piped JSON output, type aliases in contracts, SQL builder inserts, MongoDB enum syntax, or Supabase role operations are affected.
action
Follow the provided upgrade recipes and apply the necessary changes to your codebase.
release_signals
-A piped ORM command prints data lines, not JSON, unless you pass `--json`. Requires `@prisma/cli-engine` 0.9.0. Scripts reading JSON from `prisma` commands must add `--json` flag.
-The contract now stores a column's type directly, not the type alias it was written with. Requires rewriting stored contracts and migration snapshots, and re-emitting contracts.
-SQL builder inserts must include every column the database requires. Missing non-nullable columns without defaults now cause type errors.
-MongoDB enum members and discriminator values must be written in the syntax of their data type. Quoted members on non-text types are refused.
-Supabase role operations now require `forRole(binding)` and have updated `pg` option handling.
+Type aliases in PSL can now set `@default`, `@onCreate`, and `@onUpdate`.
+Postgres migrations can now rename, move, and remove namespaces, and change relation actions or primary keys.
migration_steps5 steps
- 01Add `--json` to scripts reading JSON from `prisma` commands.
- 02Run the app recipe's script to rewrite stored contracts and migration snapshots, then re-emit contracts.
- 03Ensure SQL builder inserts include all required columns.
- 04Update MongoDB enum members to use correct syntax for their data types.
- 05Update Supabase role operations to use `forRole(binding)`.
code_snippet
```ts
const Embedding1536 = field.column(type.pgvector.Vector(1536));
const Post = model('Post', {
fields: { embedding: Embedding1536.optional() },
});
return { models: { Post } };
```# 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.