Prisma migrate has stopped working for me #18973
Unanswered
sarcastic-verma
asked this question in
Q&A
Replies: 1 comment 10 replies
-
Hi @sarcastic-verma 👋 Did you follow the steps to baseline an existing database from the documentation? |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I have been using prisma for a while and have never faced this issue but Idk for this new project I am working on just doesn't work with prisma. I recently add prisma to this project and whenever I create a new migration I get the following error, even on a new db:-
The database schema is not empty. Read more about how to baseline an existing production database: https://pris.ly/d/migrate-baseline
After getting this error, if I check my postgres local client it has the tables in it (initially it was empty).
I have tried deleting the migrations folder and taking a new db but nothing works. Need help!
Above is a fresh command I ran for a new db "yessss"(sry for the name, am frustrated a bit here). Also the schema it created in the "yessss" db doesn't have a migrations table.
Beta Was this translation helpful? Give feedback.
All reactions