From 46792ee78eca03216cd39f212fe113f07d3ce34e Mon Sep 17 00:00:00 2001 From: Lukas Kahwe Smith Date: Wed, 21 Jan 2026 11:27:21 +0100 Subject: [PATCH] add note about prisma migrations in postgres-multi-schema --- docs/recipe/postgres-multi-schema.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/recipe/postgres-multi-schema.md b/docs/recipe/postgres-multi-schema.md index 36698760..13555c4a 100644 --- a/docs/recipe/postgres-multi-schema.md +++ b/docs/recipe/postgres-multi-schema.md @@ -49,3 +49,18 @@ model Post { ``` For models that don't have the `@@schema` attribute, the default schema (either "public" or the one specified in `defaultSchema`) will be used. + +## Prisma Migrations + +In order to be able to use Prisma Migrations with PostgreSQL schema it is necessary to add a `generator` even though generally speaking this directive has been deprecated in order to enable `"multiSchema"` in the `previewFeatures` in the `schema.prisma` file. + +``` +generator client { + provider = "prisma-client-js" + previewFeatures = ["multiSchema"] +} + +plugin prisma { + provider = '@core/prisma' +} +``` \ No newline at end of file