What's the correct way to fix this error?
I deleted my products table with almost 3 million records using
DROP TABLE products CASCADE;
. Then, when I tried to recreate the table with npx prisma migrate dev
, Prisma raised these errors:
This happened on my local development database, and I do have a backup. However, I'm looking for a solution to fix this without relying on backups.1 Reply
similar to this https://stackoverflow.com/questions/57402990/how-do-you-make-prisma-redeploy-to-a-database-after-youve-removed-all-the-table/57481481#57481481
Stack Overflow
How do you make prisma redeploy to a database after you've removed ...
I used prisma to generate the schema to a database, but due to changing an id column started getting errors. I deleted the tables and was going to redeploy the schema but I can't find a way to do t...