P
Prisma5d ago
salty

Could not find the migration file at

I am getting this error when trying to update my DB tables after making changes in the prisma.schema. I havnt touched any migration files and want to get a better understanding for what went wrong. Could not find the migration file at prisma\migrations\0_init\migration.sql. Please delete the directory or restore the migration file.
6 Replies
Prisma AI Help
You decided to hold for human wisdom. We'll chime in soon! Meanwhile, #ask-ai is there if you need a quick second opinion.
RaphaelEtim
RaphaelEtim3d ago
Hi @salty What's the encoding of your 0_init\migration.sql file? If it's anything other than utf-8, you will need to change it back to utf-8
RaphaelEtim
RaphaelEtim3d ago
You might also find this comment helpful to troubleshoot your issue.
GitHub
migrate resolve: The migration could not be found · Issue #14762 · ...
Bug description Manually creating the folder "migrations" and a sub folder "whatever" and putting a "migration.sql" in it wont allow prisma migrate to resolve it. How ...
salty
saltyOP3d ago
No description
salty
saltyOP3d ago
No description
salty
saltyOP3d ago
Im pretty sure they are utf-8

Did you find this page helpful?