Franco
Franco
PPrisma
Created by Lavish Munjal on 8/20/2024 in #help-and-questions
getting this error while migrating schema.prisma
for me using docker
postgres:
image: postgres
ports:
- 5432:5432
environment:
POSTGRES_DB: prisma
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
volumes:
- ./tmp/postgres:/var/lib/postgresql/data
postgres:
image: postgres
ports:
- 5432:5432
environment:
POSTGRES_DB: prisma
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
volumes:
- ./tmp/postgres:/var/lib/postgresql/data
DATABASE_URL=postgresql://prisma:prisma@localhost:5432/prisma otherwise you might need to check your postgres config
8 replies
PPrisma
Created by Lavish Munjal on 8/20/2024 in #help-and-questions
getting this error while migrating schema.prisma
or a local server?
8 replies
PPrisma
Created by Lavish Munjal on 8/20/2024 in #help-and-questions
getting this error while migrating schema.prisma
are you using docker?
8 replies
PPrisma
Created by Lavish Munjal on 8/20/2024 in #help-and-questions
getting this error while migrating schema.prisma
hey @Lavish Munjal considering that in your schema might have something like
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
does your DATABASE_URL have the following pattern?
postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}
postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}
8 replies