mnt
WWasp-lang
•Created by mnt on 10/27/2024 in #🙋questions
wasp db migrate-dev error with brand new installation
I started a brand new project to evaluate opensaas. I was able to start the postgres database in docker. When I try to run migrate-dev, I get the error described below. Can someone please give me a hand with this?
🐝 --- Setting up database... -----------------------------------------------------
[ Db !] Error: There is no datasource in the schema.
[ Db !]
[ Db !]
[ Db ] Environment variables loaded from .env
[ Db ] Prisma schema loaded from ../db/schema.prisma
[ Db !] Error:
[ Db !] You don't have any datasource defined in your schema.prisma.
[ Db !] You can define a datasource like this:
[ Db !]
[ Db !] datasource db {
[ Db !] provider = "postgresql"
[ Db !] url = env("DB_URL")
[ Db !] }
[ Db !]
[ Db !] More information in our documentation:
[ Db !] https://pris.ly/d/prisma-schema
[ Db !]
17 replies