Skip to content

npx prisma db push error after migrating from Planetscale to Neon #23890

Closed Answered by barhouum7
barhouum7 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ludralph 👋, thank you for your reply and your suggested solution. That's true, the issue was caused by incompatibility in the previous relations since they were originally generated for MySQL. So, fortunately, I tried npx prisma db pull and magically resolved this issue. It completely rewrites my Prisma schema file with relations from the previous data model as follows:

And here's the output of the pull command:

It basically added maps to the correct relations from the previous data model. And this fixed the error when I do push now.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@barhouum7
Comment options

Answer selected by barhouum7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants