Database migrations workflow for live iOS app? #1770
Unanswered
garygcchiu
asked this question in
Q&A
Replies: 1 comment
-
It wouldn't because the migrations on the migration should have incremental steps from 1.1 to 1.2 to 1.3. For example, version 1.1 would have: and version 1.3 would have: Refer to this: https://watermelondb.dev/docs/Advanced/Migrations#migrations-api That being said I wish there was something like an |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an app using React Native, and WatermelonDB.
What is the recommended way to adding a new db migration? The docs mention refreshing my simulator/browser, but that doesn't make sense for live users since we are required to submit the binary to Apple -> await their review -> users install.
Is this the recommended workflow?
The problem I see with this approach is there is no guarantee all users will incrementally use the latest version. If I have app:
v1.1with database version1v1.2with database version2w/ a new migration addedv1.3with matching schema for database version2added2In the above scenario, if the user is on v1.1 and then downloads v1.3, wouldn't their database reset?
Is there a recommended approach for deploying out a database migration?
Beta Was this translation helpful? Give feedback.
All reactions