Unable to create migrations at all
Hi I've been trying to create a baseline migration for my project and I keep getting an error that drift being detected.
Prisma essentially proceeds to just say that my entire schema is brand new. The problem is that no, there is no drift. I tried everything I could like
prisma db pull which indeed shows that everything is identical. I must create a migration because I now have a need for SQL triggers so I don't really have the option to just not use them.
Also I cannot do a reset because there is a lot of data in said database I need it to work in production 😅
Thank you in advance!2 Replies
You decided to hold for human wisdom. We'll chime in soon! Meanwhile,
#ask-ai is there if you need a quick second opinion.
I doubt this is useful as this issue occurs on other environments as well
Never mind I understand the exact purpose of migrations now I was just being stupid...
I thought migrations could work like schemas where you can add new things and just push them to your database, but they're more intended to be used initially when creating it.