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
You decided to hold for human wisdom. We'll chime in soon! Meanwhile,
#ask-ai
is there if you need a quick second opinion.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-8GitHub
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 ...


Im pretty sure they are utf-8