How should I handle migrations from multiple versions down? #1046
-
Let's say my app is released with The way I migrate the database is like the following:
This obviously doesn't work for a user that hasn't opened the app since v2 for example. Since it will only run the latest migration. But I also can't do like:
Because this way, I risk creating duplicate entries and stuff like that... How is this usually handled? Can anyone help me? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I've shared a solution before and I've been using without issues for some time. |
Beta Was this translation helpful? Give feedback.
I've shared a solution before and I've been using without issues for some time.
#789 (comment)