Skip to content

Commit 1af0914

Browse files
docs: the Vike and Remix Compute configs require postgres17, because Prisma Postgres runs PostgreSQL 17
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
1 parent 4f42db0 commit 1af0914

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎apps/docs/content/docs/guides/frameworks/remix.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,15 @@ Replace `prisma.config.ts` with the configuration below to deploy to Compute in
243243

244244
The `config: "./prisma.config.ts"` setting in `module.ts` tells Composer to read this file for the hosted database's migrations. Set `orm.migrations.dir` to the project-root `migrations` directory; step 7.3 generates the files there. Deployment applies them to the new hosted database, while local commands use the connection from your `.env`.
245245

246-
Keep `state: prismaState()` so Composer saves the server and database IDs in the hosted project and updates those resources on future deploys:
246+
Keep `state: prismaState()` so Composer saves the server and database IDs in the hosted project and updates those resources on future deploys. The contract requires `postgres17` because the hosted database is Prisma Postgres, which runs PostgreSQL 17:
247247

248248
```ts title="prisma.config.ts"
249249
import 'dotenv/config';
250250
import { defineConfig as composer } from '@prisma/composer/config';
251251
import { nodeBuild } from '@prisma/composer/node/control';
252252
import { prismaCloud, prismaState } from '@prisma/composer-prisma-cloud/control';
253253
import { definePrismaConfig } from 'prisma/config';
254-
import { defineConfig as ormConfig, postgres18, postgresDriver } from '@prisma/orm-postgres/config';
254+
import { defineConfig as ormConfig, postgres17, postgresDriver } from '@prisma/orm-postgres/config';
255255

256256
export default definePrismaConfig({
257257
composer: composer({
@@ -262,7 +262,7 @@ export default definePrismaConfig({
262262
orm: ormConfig({
263263
contract: {
264264
path: "./src/prisma/contract.prisma",
265-
requiredCapabilities: [...postgres18, ...postgresDriver],
265+
requiredCapabilities: [...postgres17, ...postgresDriver],
266266
},
267267
migrations: { dir: "./migrations" },
268268
db: {

‎apps/docs/content/docs/guides/frameworks/vike.mdx‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,13 @@ export default appRoot("my-vike-app", ({ provision }) => {
266266
});
267267
```
268268

269-
Add a `composer` section to the config that `orm init` wrote. The `region` applies when the first deploy creates the project, and it cannot change afterwards:
269+
Add a `composer` section to the config that `orm init` wrote. The `region` applies when the first deploy creates the project, and it cannot change afterwards. Prisma Postgres runs PostgreSQL 17, so the contract requires `postgres17` in place of the `postgres18` that `orm init` wrote:
270270

271271
```ts title="prisma.config.ts"
272272
import 'dotenv/config';
273273
import { definePrismaConfig } from 'prisma/config';
274-
import { defineConfig as ormConfig, postgres18, postgresDriver } from '@prisma/orm-postgres/config';
274+
import { defineConfig as ormConfig, postgres18, postgresDriver } from '@prisma/orm-postgres/config'; // [!code --]
275+
import { defineConfig as ormConfig, postgres17, postgresDriver } from '@prisma/orm-postgres/config'; // [!code ++]
275276
import { defineConfig as composer } from '@prisma/composer/config'; // [!code ++]
276277
import { nodeBuild } from '@prisma/composer/node/control'; // [!code ++]
277278
import { prismaCloud, prismaState } from '@prisma/composer-prisma-cloud/control'; // [!code ++]
@@ -280,7 +281,8 @@ export default definePrismaConfig({
280281
orm: ormConfig({
281282
contract: {
282283
path: "./src/prisma/contract.prisma",
283-
requiredCapabilities: [...postgres18, ...postgresDriver],
284+
requiredCapabilities: [...postgres18, ...postgresDriver], // [!code --]
285+
requiredCapabilities: [...postgres17, ...postgresDriver], // [!code ++]
284286
},
285287
db: {
286288
connection: process.env['DATABASE_URL']!,

0 commit comments

Comments
 (0)