# Migration Context: Prisma v2 -> v3 # Generated by Changelogs.us: 2026-11-30T03:04:33.336959+00:00 # Target Version: 3.15.2 # Upgrade Command: N/A # Breaking Changes: 15 # Security Fixes: 0 ## Executive Summary Upgrading Prisma from 2 to 3 involves 26 releases with risk rating High. ## Breaking Changes List: - [v3.0.1] [As previously announced](https://www.prisma.io/blog/prisma-adopts-semver-strictly), Prisma has adopted SemVer strictly and this is the first major release which means it has some breaking changes.: - [v3.0.1] For all the breaking changes, there are guides and documentation to assist you with the upgrade.: - [v3.0.1] We recommend that you read through the breaking changes below carefully and make sure that you've correctly upgraded your application.: - [v3.0.1] 🚨 **Please note** that the defaults change in this release. In some cases, this can lead to queries behaving differently in Prisma 3.x compared to Prisma 2.x, since the database will be enforcing referential actions, and not Prisma Client anymore. This means that if you only update your client without changing your Prisma schema, you will lose Prisma-level protections against cascading deletes. Read more in the Breaking Changes section below and the [upgrade guide](https://www.prisma.io/docs/concepts/components/prisma-schema/relations/referential-actions#upgrade-paths) for a detailed explanati: - [v3.0.1] 🚨 **Please note** that you will have to make conscious decisions about constraint names when you upgrade to Prisma 3. Prisma will help you with the upgrade process using introspection with `prisma db pull` and Prisma Migrate. Read more in the Breaking Changes section below and the [upgrade guide](https://prisma.io/docs/guides/upgrade-guides/upgrading-versions/upgrading-to-prisma-3/named-constraints) for a detailed explanation and steps to follow. 🚨: - [v3.0.1] 🚨 **Please note** that if you already have a seed script that worked created in versions prior, you will need to add the script to `prisma.seed` in your `package.json` and adapt the script to the new API. Read more in the Breaking Changes section below and the [seeding docs](https://www.prisma.io/docs/guides/database/seed-database) for a complete explanation and walkthroughs of common use cases.: - [v3.0.1] Breaking Changes Some of the features above introduce breaking changes. In this section, we cover the breaking changes in more detail with links to upgrade guides in the documentation. We recommend that you read through the breaking changes carefully and make sure that you've upgraded and tested your application.: - [v3.0.1] Some of the features above introduce breaking changes. In this section, we cover the breaking changes in more detail with links to upgrade guides in the documentation. We recommend that you read through the breaking changes carefully and make sure that you've upgraded and tested your application.: - [v3.0.2] - [Remove misleading "breaking changes" message for 3.0+](https://github.com/prisma/prisma/issues/9171): - [v3.1.1] - [`prisma 3.0.1` warns about breaking changes.](https://github.com/prisma/prisma/issues/9171): - [v3.10.0] We are working towards a stable release of MongoDB and are shipping lots of improvements. **All the new features and changes in this release therefore only apply to the MongoDB connector.** Take a closer look if you are using the [Preview](https://www.prisma.io/docs/about/prisma/releases#preview) of MongoDB as some of the changes are breaking.: - [v3.11.1] Breaking: Filters no longer return `undefined` fields by default: - [v3.12.0] 🚨 Please be aware that we made a few **breaking changes** to tie up loose ends before General Availability:: - [v3.13.0] 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.: - [v3.14.0] In this release, we made improvements to the SQL raw API. Some improvements are breaking and will be available behind the new `improvedQueryRaw` Preview feature flag.: ## Instructions for AI Assistant: When migrating user code from Prisma 2 to 3, scan for the deprecated APIs and breaking changes above and refactor code to use modern v3.15.2 idioms.