Skip to content

Commit 354c4e8

Browse files
committed
update database
1 parent ca4aeec commit 354c4e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.env

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
NEXTAUTH_SECRET=abc123
2-
DATABASE_URL="postgresql://postgres:abc123@localhost:5432/todo?schema=public"
3-
GITHUB_ID=
4-
GITHUB_SECRET=
2+
POSTGRES_PRISMA_URL="postgresql://postgres:abc123@localhost:5432/todo?schema=public"
3+
POSTGRES_URL_NON_POOLING="postgresql://postgres:abc123@localhost:5432/todo?schema=public"

schema.zmodel

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
*/
88
datasource db {
99
provider = 'postgresql'
10-
url = env('DATABASE_URL')
10+
url = env('POSTGRES_PRISMA_URL')
11+
directUrl = env('POSTGRES_URL_NON_POOLING')
1112
}
1213

1314
generator js {

0 commit comments

Comments
 (0)