prisma / migrate

Issues for Prisma Migrate are now tracked at prisma/prisma. This repo was used to track issues for Prisma Migrate Experimental and is now deprecated.
https://www.prisma.io/docs/concepts/components/prisma-migrate
Apache License 2.0
766 stars 22 forks source link

crashed after the first migration #625

Closed tedoham closed 4 years ago

tedoham commented 4 years ago

Hi Prisma Team! Prisma Migrate just crashed.

Versions

Name Version
Platform darwin
Node v14.14.0
Prisma CLI 2.10.0
Binary af1ae11a423edfb5d24092a85be11fa77c5e499c

Error

Error: Error in migration engine.
Reason: [libs/sql-schema-describer/src/walkers.rs:214:27] index out of bounds: the len is 0 but the index is 0

Please create an issue in the migrate repo with
your `schema.prisma` and the prisma command you tried to use 🙏:
https://github.com/prisma/migrate/issues/new
tomhoule commented 4 years ago

This is a known issue, we're working on fixing this. Thanks for reporting.

tomhoule commented 4 years ago

Would you be able to share your schema and/or your migrations?

tomhoule commented 4 years ago

We worked on this problem and just released a fix in 2.10.1. Can you confirm that this does not happen anymore with the new version?

tomhoule commented 4 years ago

Other users confirmed the problem is gone for them in 2.10.1, so I'll close this as duplicate.

smakosh commented 4 years ago

I'm having the same issue @tomhoule

tomhoule commented 4 years ago

Please open an issue with more details and we can look into it, it will be forgotten if it stays in the comments of a closed issue.

smakosh commented 4 years ago

The issue happened because I wasn't using npx prisma migrate..., that worked fine.