Skip to content

Commit

Permalink
feat: update Prisma schema (#9099)
Browse files Browse the repository at this point in the history
### Description

`referentialIntegrity = "prisma"` is deprecated, the latest feature is
`relationMode = "prisma"`.
Also since `"referentialIntegrity"` is deprecated, preview feature
functionality can be used without specifying it.

### Testing Instructions

Didn't do any testing steps, i just saw this warning as i'm setting up
my own monorepo and decided to update your example aswell. (should not
mess anything up, based on https://pris.ly/d/relation-mode)
  • Loading branch information
dpaulos6 authored Sep 3, 2024
1 parent 3302ca2 commit e3468ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/with-prisma/packages/database/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
referentialIntegrity = "prisma"
relationMode = "prisma"
}

generator client {
provider = "prisma-client-js"
previewFeatures = ["referentialIntegrity"]
}

model User {
Expand Down

0 comments on commit e3468ce

Please sign in to comment.