From e4dd989eeb201be5c9985f53b1501871948cae84 Mon Sep 17 00:00:00 2001 From: Raphael Etim Date: Tue, 14 Jan 2025 17:29:00 +0100 Subject: [PATCH 1/2] clarify Prisma v6 schema changes for CockroachDB users Added an admonition to specify that the schema changes for implicit m-to-n relationships in Prisma v6 only apply to PostgreSQL. CockroachDB users do not need to take any action as their schema remains unchanged. --- .../200-upgrading-versions/500-upgrading-to-prisma-6.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/500-upgrading-to-prisma-6.mdx b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/500-upgrading-to-prisma-6.mdx index dce096bd76..7c7690567d 100644 --- a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/500-upgrading-to-prisma-6.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/500-upgrading-to-prisma-6.mdx @@ -75,6 +75,13 @@ There is _no_ official support for Node.js 16, 17, 19 and 21. The new minimum supported TypeScript version for Prisma ORM v6 is: **5.1.0**. + + +This schema change only applies to PostgreSQL. +If you are using CockroachDB, you do not need to take any action—the schema for implicit m-to-n relationships remains unchanged. + + + ### Schema change for implicit m-n relations on PostgreSQL If you're using PostgreSQL and are defining [implicit many-to-many relations](/orm/prisma-schema/data-model/relations/many-to-many-relations#implicit-many-to-many-relations) in your Prisma schema, Prisma ORM maintains the [relation table](/orm/prisma-schema/data-model/relations/many-to-many-relations#relation-tables) for you under the hood. This relation table has `A` and `B` columns to represent the tables of the models that are part of this relation. From 1b16d998c6728db844432a3ec7a5d07841367faf Mon Sep 17 00:00:00 2001 From: Jon Harrell <4829245+jharrell@users.noreply.github.com> Date: Tue, 14 Jan 2025 10:37:03 -0600 Subject: [PATCH 2/2] Update content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/500-upgrading-to-prisma-6.mdx --- .../200-upgrading-versions/500-upgrading-to-prisma-6.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/500-upgrading-to-prisma-6.mdx b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/500-upgrading-to-prisma-6.mdx index 7c7690567d..2fa938fc7b 100644 --- a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/500-upgrading-to-prisma-6.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/500-upgrading-to-prisma-6.mdx @@ -75,12 +75,12 @@ There is _no_ official support for Node.js 16, 17, 19 and 21. The new minimum supported TypeScript version for Prisma ORM v6 is: **5.1.0**. - +:::info This schema change only applies to PostgreSQL. If you are using CockroachDB, you do not need to take any action—the schema for implicit m-to-n relationships remains unchanged. - +::: ### Schema change for implicit m-n relations on PostgreSQL