The migration 0_init could not be found. #23860
QuestionI first pulled the database which already existed. (npx prisma db pull) This created the migration.sql as follows after I ran "npx prisma migrate resolve --applied 0_init" which threw this error
How to reproduce (optional)Following the baseline setup process Expected behavior (optional)No response Information about Prisma Schema, Client Queries and Environment (optional)
|
Replies: 2 comments
|
Try changing the file encoding of the migration.sql file to UTF-8. I followed the baseline setup process exactly and got this error, also using VSCode terminal. After some digging I found this and the command worked for me after I changed the encoding. My migration.sql file was UTF-16 originally. |
|
same issue. Tried to start using migrations on an exist project and followed baseline guide like in original question |

Try changing the file encoding of the migration.sql file to UTF-8. I followed the baseline setup process exactly and got this error, also using VSCode terminal. After some digging I found this and the command worked for me after I changed the encoding. My migration.sql file was UTF-16 originally.