Mahmoud
08/10/2021, 5:12 PMinteractiveTransactions
preview feature in your Prisma Schema:
generator client {
provider = "prisma-client-js"
previewFeatures = ["interactiveTransactions"]
}
Note that the interactive transactions API does not support controlling isolation levels or locking for now.
You can find out more about implementing use cases with transactions in the docs, and share your feedback.
๐ namedConstraints
are now in Preview
So far the Prisma schema could only represent the underlying database names for @@unique
and @@index
.
Names for primary keys and foreign keys could not be represented even when the database supported these. This could lead to problems with the names of constraints in different environments getting out of sync and generated migrations therefore failing.
You can opt-in to namedConstraints
by setting the namedConstraints
preview feature in your Prisma Schema:
generator client {
provider = "prisma-client-js"
previewFeatures = ["namedConstraints"]
}
When using prisma db pull
these names will now automatically be pulled into your Prisma schema unless they match our default naming convention (which follows the Postgres convention).
Please check our upgrade guide before enabling the preview flag and running migrate operations for the first time.
๐ Learn more in the release notes
For more info and links to documentation, you can read the release notes.
๐ Help us spread the word about Prisma ๐
To help spread the word about Prisma, weโd very much appreciate if you would star the repo ๐ And if youโre excited about the features in this weekโs release, then help us and share your excitement on Twitter.
๐ฐ Join us on Thursday for the โWhatโs new in Prismaโ livestream
@Daniel Norman and I will discuss the latest release and other news from the Prisma ecosystem in a on Thursday at 5pm Berlin | 8am San Francisco.