3.1.1
#9362
Replies: 1 comment 6 replies
-
Even after updating I'm getting this 🤔 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Today, we are excited to share the
3.1.1
stable release 🎉🌟 Help us spread the word about Prisma by starring the repo ☝️ or tweeting about the release.
Major improvements
New
referentialIntegrity
setting in Preview 🚀Relational databases typically ensure integrity between relations with foreign key constraints, for example, given a 1:n relation between
User:Post
, you can configure the deletion of a user to cascade to posts so that no posts are left pointing to a User that doesn't exist. In Prisma, these constraints are defined in the Prisma schema with the@relation()
attribute.However, databases like PlanetScale do not support defining foreign keys. To work around this limitation so that you can use Prisma with PlanetScale, we're introducing a new
referentialIntegrity
setting in Preview.This was initially introduced in version
2.24.0
of Prisma with theplanetScaleMode
preview feature and setting. Starting with this release both have been renamed toreferentialIntegrity
.The setting lets you control whether referential integrity is enforced by the database with foreign keys (default), or by Prisma, by setting
referentialIntegrity = "prisma"
.Setting Referential Integrity to
prisma
has the following implications:You can give it a try in version 3.1.1 by enabling the
referentialIntegrity
preview flag:Note that this feature is not applicable to MongoDB.
Learn more about it in our documentation.
Full-Text Search for the Go Client
In an earlier release, we added Full-Text Search (for PostgreSQL) to the Typescript Client. This was released as a Preview feature.
In this release, we've added that Preview feature to the Go Client. Enable it in your Go project by adding the
fullTextSearch
preview feature.Here's an example:
You can get started with the Go Client using our Quick Start Guide. Learn more about Full-Text Search in our documentation.
Interested in Prisma’s upcoming Data Proxy for serverless backends? Get notified! 👀
Database connection management in serverless backends is challenging: taming the number of database connections, additional query latencies for setting up connections, etc.
At Prisma, we are working on a Prisma Data Proxy that makes integrating traditional relational and NoSQL databases in serverless Prisma-backed applications a breeze. If you are interested, you can sign up to get notified of our upcoming Early Access Program here:
https://pris.ly/prisma-data-proxy
📺 Join us for another "What's new in Prisma" livestream
Learn about the latest 3.1.1 release and other news from the Prisma community by joining Daniel Norman from the Prisma team for another What's new in Prisma livestream.
The stream takes place on Youtube on Thursday, September 23 at 5pm Berlin | 8am San Francisco.
Fixes and improvements
Prisma Migrate
planetScaleMode = true
is not preserved duringdb pull
Prisma Client
Option::unwrap()
on aNone
valuenApi
preview feature is still allowed and suggestedPrisma
prisma 3.0.1
warns about breaking changes.onUpdate
with prisma level integrityCredits
Huge thanks to @saintmalik, @benkenawell, @ShubhankarKG, @hehex9 for helping!
This discussion was created from the release 3.1.1.
Beta Was this translation helpful? Give feedback.
All reactions