You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, we are excited to share the 2.22.0 stable release 🎉
🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟
Major improvements & new features
prisma db push is now Generally Available
prisma db push enables you to update the database schema from the Prisma schema file, without generating any migrations.
This is especially useful when prototyping a new feature, iterating on the schema changes before creating migrations or generally if you are at stage of your development process, where you don't need to persist the schema change history via database migrations.
You can find more info on prisma db push in the official docs.
Deprecation of array notation for provider fields
In this release, we are also entirely removing the array notation for the provider fields on datasource blocks. This has been deprecated since 2.11.0 (November 2020).
You can read more about our reasons for this deprecation here.
Prisma Client Go gets support for AND operator
We've always had OR, but this release we also added AND support:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Today, we are excited to share the
2.22.0stable release 🎉🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟
Major improvements & new features
prisma db pushis now Generally Availableprisma db pushenables you to update the database schema from the Prisma schema file, without generating any migrations.This is especially useful when prototyping a new feature, iterating on the schema changes before creating migrations or generally if you are at stage of your development process, where you don't need to persist the schema change history via database migrations.
It is now promoted from Preview to General Availabilty.
You can find more info on
prisma db pushin the official docs.Deprecation of array notation for
providerfieldsIn this release, we are also entirely removing the array notation for the
providerfields ondatasourceblocks. This has been deprecated since 2.11.0 (November 2020).You can read more about our reasons for this deprecation here.
Prisma Client Go gets support for
ANDoperatorWe've always had
OR, but this release we also addedANDsupport:Learn more in our docs.
Fixes and improvements
Prisma Migrate
provideras known error that does not trigger Error ReportingOption::unwrap()on aNonevalueprisma migrate deployautoincrement()default value is used on a non-indexed field even though the datasource does not support this."migrate devwith shadow database errors with "Database already exists FK__Address__userId" when migration fails because of existing foreign keyPrisma Client
Prisma Studio
Prisma engines
Credits
Huge thanks to @Sytten, @schiller-manuel, @mongolyy, @paularah, @Iamshankhadeep, @meeq for helping!
📺 Join us for another "What's new in Prisma" livestream
Learn about the latest release and other news from the Prisma community by joining us for another "What's new in Prisma" livestream.
The stream takes place on Youtube on Thursday, May 06 at 5pm Berlin | 8am San Francisco.
This discussion was created from the release 2.22.0.
All reactions