Error P1012 when trying to use Prisma Postgres
Hey there 👋 I'm trying to use Prisma Postgres, but I am getting this error. I am unsure why the
DATABASE_URL
provided by Prisma would not work? Mine follows the format: prisma+postgres://accelerate.prisma-data.net/?api_key=..."
but I get the following error when running npx prisma migrate dev --name init
4 Replies
Hello @Alaskan donut 👋
This is strange. Prisma Postgres should work as expected with Prisma Migrate. Can you double check that the correct environment variable - DATABASE_URL is being used.
Do you have any other database connection strings in your env file?
These are the two keys Prisma Postgres provides me during setup. I have no other keys that might conflict.
Are there any resources on debugging this?
Is your repository open source? If yes, can you share it with me?
I'll try spinning up a new prisma postgres db and check if I get the same issue
It is not, but if you shoot me your github email I can share it with you. Currently I am using Neon until I can resolve this.