steven-tey / precedent

An opinionated collection of components, hooks, and utilities for your Next.js project.
https://precedent.dev
MIT License
4.65k stars 406 forks source link

Update schema.prisma for Prisma migration on vercel #68

Closed eshlon closed 8 months ago

eshlon commented 10 months ago

Removed 'shadowDatabaseUrl' in prisma schema 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: https://github.com/prisma/prisma/issues/19234#issuecomment-1624261912

vercel[bot] commented 10 months ago

@eshlon is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

janpio commented 10 months ago

Can we get this merged @steven-tey? Vercel Postgres can now create the shadow database dynamically, so this property is not needed any more - and indeed leads to problems. Thanks!

steven-tey commented 8 months ago

Sorry, just seeing this :sad_praying_cowboy:

Merging now, thank you!