# prisma/release
Prisma v8.0.0-rc.9
importance: highbreakingmigrationfeatureprerelease
This release candidate introduces stricter schema validation, reusable query-filter types, and fixes for language-server diagnostics and PostgreSQL migration verification. It includes several breaking changes, particularly around MongoDB schema handling and SQL ORM filter types.
affected
Developers using PostgreSQL enums, MongoDB schemas, or SQL ORM filter types are affected by the breaking changes and need to update their schemas and code accordingly.
action
Review and apply the provided upgrade recipes to migrate schemas and code to be compatible with this release.
release_signals
-Text-backed enum ordering in PostgreSQL now follows stored values, requiring explicit ranking expressions or numeric enum values for semantic ranking.
-MongoDB index arguments now use native schema values, replacing encoded strings with lists and records.
-MongoDB rejects previously ignored attributes like `@default`, `@updatedAt`, and `@db.*`, requiring schema updates.
-Reusable SQL ORM filter types now require a namespace, necessitating updates to existing shorthand annotations.
-SQL ORM upsert and batch-create inputs no longer accept nested relation callbacks, requiring separate creation of related records.
+Extract reusable, fully typed SQL-builder predicates with `WhereFilter<Contract, Namespace, Table>`.
+PostgreSQL numeric enums now derive membership CHECK constraints for scalar and array columns.
migration_steps4 steps
- 01Update MongoDB schemas to use native schema values for index arguments.
- 02Remove unsupported attributes like `@default` and `@updatedAt` from MongoDB schemas.
- 03Update SQL ORM filter types to include a namespace.
- 04Use explicit creation methods instead of nested callbacks in SQL ORM upsert and batch-create operations.
code_snippet
Before:
```prisma
@@index([wildcard()], include: "[metadata, nested.path]")
@@textIndex([title, body], weights: "{\"title\": 10, \"body\": 5}")
```
After:
```prisma
@@index([wildcard()], include: ["metadata", "nested.path"])
@@textIndex([title, body], weights: { title: 10, body: 5 })
```# 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.