Hi all! I have a question seemingly related to the...
# prisma-migrate
d
Hi all! I have a question seemingly related to the 2.12.0 release. With the following change “1-1-relations must now have an optional side”, I was getting an error when running
npx prisma migrate save --experimental
relating to the virtual side of a relation being required. After updating the
schema.prisma
file accordingly, it still gives me the same errors. Are there any additional steps I need to take? Has anyone else experienced this?
m
I do. I wrote a similiar message as your's yesterday but I deleted it right after as the error vanished. I performed the migration before updating to the latest prisma version and it went well.
Sorry about this! This has been a miss on our end. We’re currently working on the new migrate, which will be available in preview in the next couple of weeks, and will replace the current experimental migrate. I’d recommend switching to it as soon as it’s available, since the problem you are experiencing has been resolved in it. As an intermediate solution, I’d suggest continuing to use 2.11.0. The current migrate wasn’t flagged as production-ready due to some shortcomings we’re addressing with this new version so we hope you can make the most out of it going forward.
fast parrot 2
If you want to try the new migrate now you can check #product-feedback here https://prisma.slack.com/archives/C01739JGFCM/p1604078848016200
Any feedback is welcome!
m
Nice @Joël ;) Beware the notion propose to install
@prisma/cli@2.11.0-integration-migrate.5
but you should use
@prisma/cli@2.12.0-integration-migrate.5
if migrated to Prisma 2.12.x
j
Oh thanks! We need to update the latest version today too 😄
d
Hi @Joël! Sorry for my delayed response, was away for Thanksgiving holiday in the US. No worries at all, and sounds good. Like I mentioned after this post, I was able to resolve it by getting rid of the
/prisma/migrations
folder and truncating the
_Migration
table in the Postgres db.
👍 1
Will check out the new migrate 🙂
💯 1
💚 1
j
Great! Let us know what you think :)
d
Will do! Appreciate your hard work and communication here. Really stoked on the library as a whole 🙂
🙏 1
🎉 1
💚 1