Prisma 3.13.0stable Released Apr 26, 2022
⚠️ Breaking Change Impact Score: 7/10

Prisma 3.13.0 β€” Release Notes & Engineering Impact

Source available β€” automated, not human-reviewed

Component: prisma Β· Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-01.

Breaking-change evidence from the source

  • If you've enabled the `extendedIndexes` Preview feature, this is potentially a breaking change. Refer to our [documentation](https://www.prisma.io/docs/concepts/components/prisma-schema/indexes#upgrading-from-previous-versions) to learn how you can upgrade from a previous version.
Read the original context β†—
Source flags breaking changes β€” review applicability
$ npm install --save-dev --save-exact [email protected]
πŸ“„ .MD
⚑ Executive Summary (TL;DR)

Prisma 3.13.0. Source highlight: Today, we are excited to share the `3.13.0` stable release πŸŽ‰

Who Does This Impact? (Role-Based Analysis)

πŸ’» Software Engineers & Devs

Check the source notes against the package and APIs you use before upgrading.

πŸ“Š Product & Engineering Leads

Use the documented changes to assess relevance to your product; release frequency alone is not a quality measure.

βš™οΈ DevOps & Security

Verify the target version, runtime requirements and rollback procedure in the official documentation.

⚠️ Breaking Changes & Deprecations (1)

  • If you've enabled the `extendedIndexes` Preview feature, this is potentially a breaking change. Refer to our [documentation](https://www.prisma.io/docs/concepts/components/prisma-schema/indexes#upgrading-from-previous-versions) to learn how you can upgrade from a previous version.

✨ New Features & Capabilities (2)

  • MongoDB: Add spinner to Introspection
  • Remove `--preview-feature` flag for Primitives (`migrate diff` and `db execute`)
πŸ“„ View Raw Release Notes (Original Developer Log)
Today, we are excited to share the `3.13.0` stable release πŸŽ‰ 🌟 **Help us spread the word about Prisma by starring the repo or [tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@prisma%20release%20v3.13.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/3.13.0) about the release.** 🌟 ## Major improvements ### `migrate diff` and `db execute` are now Generally Available! We released two new Preview CLI commands in version `3.9.0` – `prisma migrate diff` and `prisma db execute` – to enable our users to create and understand migrations and build their workflows using the commands. We're proud to announce that the commands are now Generally Available and can now be used without the `--preview-feature` flag. πŸŽ‰ TheΒ `prisma migrate diff`Β command creates a diff of your database schema, Prisma schema file, or the migration history. All you have to do is feed the command with a schemaΒ `from`Β state and a schemaΒ `to`Β state to get an SQL script or human-readable diff. In addition to `prisma migrate diff`, `prisma db execute` is used to execute SQL scripts against a database. You can directly execute `prisma migrate diff`'s output using `prisma db execute --stdin`. Both commands are non-interactive, so it's possible to build many new workflows such as forward and backward migrations with some automation tooling. Take a look at our documentation to learn some of the popular workflows these commands unlock: - [Fixing failed migrations](https://www.prisma.io/docs/guides/database/production-troubleshooting#fixing-failed-migrations-with-migrate-diff-and-db-execute) - [Squashing migrations](https://prisma.io/docs/guides/database/developing-with-prisma-migrate/squashing-migrations) - [Generating down migrations](https://prisma.io/docs/guides/database/developing-with-prisma-migrate/generating-down-migrations) - Command reference for [`migrate diff`](https://www.prisma.io/docs/reference/api-reference/command-reference#migrate-diff) and [`db execute`](https://www.prisma.io/docs/reference/api-reference/command-reference#db-execute) Let us know what tools, automation, and scripts you build using these commands. ### SQL Server index clustering (Preview) In version `3.5.0`, we introduced the `extendedIndexes` Preview feature which we have constantly been adding new configuration options for indexes. In this release, we added support for [enabling or disabling index/constraint clustering in SQL Server](https://www.prisma.io/docs/concepts/components/prisma-schema/indexes#configuring-if-indexes-are-clustered-or-non-clustered-with-clustered-sql-server). By default, indexes will be clustered by default. You can update this in your schema as follows to disable index clustering: ```prisma datasource db { provider = "sqlserver" url = env("DATABASE_URL") } generator client { provider = "prisma-client-js" previewFeatures = ["extendedIndexes"] } model Post { id Int @default(autoincrement()) @id(clustered: false) title String content String? } ``` The following SQL will be generated in your migration when you run `prisma migrate dev` ```sql CREATE TABLE [Post] ( id INT NOT NULL, [title] VARCHAR(255) NOT NULL, [content] NVARCHAR(1000), CONSTRAINT [Post_pkey] PRIMARY KEY NONCLUSTERED (id) ) ``` If you've enabled the `extendedIndexes` Preview feature, this is potentially a breaking change. Refer to our [documentation](https://www.prisma.io/docs/concepts/components/prisma-schema/indexes#upgrading-from-previous-versions) to learn how you can upgrade from a previous version. ### Updated native types for CockroachDB (Preview) We have revamped the native types available in the CockroachDB connector. We initially re-used the PostgreSQL native types because they were close enough, but we have now adapted our list of the supported native types to match what CockroachDB supports. If you are already using CockroachDB in your project, you can run `prisma db pull` to update all the native types in your Prisma schema. Refer to our [documentation](https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#model-field-scalar-types) for the complete list of all CockroachDB native types. ### OpenSSL 3.0 Support We're excited to announce that version `3.13.0` now supports [OpenSSL 3.0](https://www.openssl.org/). Operating systems such as Ubuntu 22.04 default to OpenSSL 3.0, and when running `prisma generate`, you would run into the following error: ``` Error: Unknown binaryTarget debian-openssl-3.0.x ``` If you've run into a similar error, bump up to the latest Prisma version and give it another try! ## Fixes and improvements ### Prisma Client - [Support OpenSSL 3.0](https://github.com/prisma/prisma/issues/11356) - [Create a test factory for newer and cleaner tests](https://github.com/prisma/prisma/issues/11573) - [Invalid Binary Target for OpenSSL V3 on CentOS Stream 9](https://github.com/prisma/prisma/issues/11677) - [thread 'tokio-runtime-worker' panicked at 'not yet implemented'](https://github.com/prisma/prisma/issues/12704) ### Prisma - [`prisma init` needs CockroachDB in the providers list](https://github.com/prisma/prisma/issues/11633) - [db execute: confusing error message when doing `DROP DATABASE "test-doesnotexists;"` says that `Database postgres.public does not exist`](https://github.com/prisma/prisma/issues/11673) - [[Diff] Always error if path to Sqlite db is wrong or db does not exist](https://github.com/prisma/prisma/issues/12226) - [CockroachDB: Change the integer native types to the idiomatic ones](https://github.com/prisma/prisma/issues/12236) - [CockroachDB: use idiomatic native types](https://github.com/prisma/prisma/issues/12237) - [Prisma `migrate diff` just crashed. ](https://github.com/prisma/prisma/issues/12351) - [`prisma init --datasource-provider=cockroachdb --url ...` sets provider to `postgresql`](https://github.com/prisma/prisma/issues/12360) - [MongoDB: Add spinner to Introspection](https://github.com/prisma/prisma/issues/12632) - [Remove `--preview-feature` flag for Primitives (`migrate diff` and `db execute`)](https://github.com/prisma/prisma/issues/12679) - ["reportFailedMessage" is never displayed in case a panic error fails to be submitted to the reporting service](https://github.com/prisma/prisma/issues/12739) - [Support defining index clustering](https://github.com/prisma/prisma/issues/12871) - [MongoDB: Invalid relation does not throw validation error ](https://github.com/prisma/prisma/issues/12930) ### Language tools (e.g. VS Code) - [Rework auto completion tests](https://github.com/prisma/language-tools/issues/849) - [Internal: For PR / branches it would be great to have an easy way to test the VS Code extension](https://github.com/prisma/language-tools/issues/1005) ### Prisma Engines - [Moving to NAPI-rs v2](https://github.com/prisma/prisma-engines/issues/2829) ## Credits Huge thanks to @ever0de, @jacobhq, @dkantereivin, @CommanderRoot for helping! ## πŸ’Ό We're hiring! If you're interested in joining our growing team to help empower developers to build data-intensive applications, Prisma is the place for you. We're looking for a [Technical Support Engineer](https://grnh.se/ff0d8a702us) and [Senior Software Engineer (Prisma Data Platform)](https://grnh.se/484964dd2us). Feel free to read through the job descriptions and apply using the links provided. ## πŸ“Ί 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"](https://youtu.be/mzWBmhWluKk) livestream. The stream takes place [on YouTube](https://youtu.be/mzWBmhWluKk) on **Thursday, April 28** at **5 pm Berlin | 8 am San Francisco**.