Skip to content

unable to create migration PlanetScale #9703

Answered by ryands17
saihaj asked this question in Q&A
Discussion options

You must be logged in to vote

@saihaj 👋

Currently we don't recommend using prisma migrate on Planetscale. Also it seems that you are using foreign keys and Planetscale doesn't support that. The way to tell migrate not to create foreign keys is adding the referentialIntegrity preview feature and using referentialIntegrity = "prisma" in the datasource that you can read about here.

The best way to go for now is using db push when using PlanetScale and not using foreign keys.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by saihaj
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