Skip to content

Upgrade path from 1.0 datamodel #2225

Answered by nikolasburk
clioh asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @harpe116 👋 apologies for the delay on this one!

My understanding is that prisma 2 is only going to support foreign key relations for 1:n relationships, which means that we'll have to alter our database schema to support these. Is that correct?

Indeed, all relations in Prisma 2 are always based on foreign keys in the underlying DB.

I'm wondering what our upgrade path is here. Do we need to do a manual migration to add foreign keys to all of our tables where relationships are defined by a relation table?

We are currently in the process of researching and defining the best upgrade paths for Prisma 1 users and will share more about this soon. You can track the developments in this Gi…

Replies: 1 comment

Comment options

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