Skip to content

Commit

Permalink
Update schema.prisma
Browse files Browse the repository at this point in the history
Removed 'shadowDatabaseUrl' for migration on vercel. Prisma docs stated that 'shadowDatabaseUrl' shouldn't be the same as 'directUrl'; as it causes errors.

Prisma Docs:
https://www.prisma.io/docs/concepts/components/prisma-migrate/shadow-database

Potential Problem regarding migration:
prisma/prisma#19234 (comment)
  • Loading branch information
eshlon committed Aug 25, 2023
1 parent f58682d commit aa0865a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ datasource db {
provider = "postgresql"
url = env("POSTGRES_PRISMA_URL") // uses connection pooling
directUrl = env("POSTGRES_URL_NON_POOLING") // uses a direct connection
shadowDatabaseUrl = env("POSTGRES_URL_NON_POOLING") // used for migrations
}


Expand Down Expand Up @@ -59,4 +58,4 @@ model VerificationToken {
expires DateTime
@@unique([identifier, token])
}
}

0 comments on commit aa0865a

Please sign in to comment.