You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Add new database migration
Release (submit to App Store -> go through Apple review process)
Make matching change in schema
Release
Bump schema version
Release
The problem I see with this approach is there is no guarantee all users will incrementally use the latest version. If I have app:
Shipped version v1.1 with database version 1
Then ship v1.2 with database version 2 w/ a new migration added
Then ship v1.3 with matching schema for database version 2 added
Then bump schema version to 2
In the above scenario, if the user is on v1.1 and then downloads v1.3, wouldn't their database reset?
Or is it safe to just add db migration, make change to schema, bump schema version -> release all at once to App Store?
Is there a recommended approach for deploying out a database migration?
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.1
with database version1
v1.2
with database version2
w/ a new migration addedv1.3
with matching schema for database version2
added2
In the above scenario, if the user is on v1.1 and then downloads v1.3, wouldn't their database reset?
Or is it safe to just add db migration, make change to schema, bump schema version -> release all at once to App Store?
Is there a recommended approach for deploying out a database migration?
Thanks @radex @Nozbe
The text was updated successfully, but these errors were encountered: