Migrate database to Vercel postgres

This commit is contained in:
Aaron William Po
2023-05-02 20:01:12 -04:00
parent 150e847df7
commit 85ecc9f062
10 changed files with 235 additions and 152 deletions

View File

@@ -6,8 +6,10 @@ generator client {
}
datasource db {
provider = "cockroachdb"
url = env("DATABASE_URL")
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
}
model User {