Hi all:
I am new to realm, I want to use realm in my android app, but I am bit of concerning the migration.
So where to find the docs/resources on the best practice for do migration on realm ?
Or even is trying to avoid migration totally is a good idea ? For example:
In the first place, I have a mode called ModelV1.java, and if we need to update the schema later on , it just required to create another model ModelV2.java. In the start up time of the, the new will copy all the data in ModelV1 on device to ModelV2, then delete all ModelV1 object.
Is this doable or just a stupid idea ?
Hi all:
I am new to realm, I want to use realm in my android app, but I am bit of concerning the migration.
So where to find the docs/resources on the best practice for do migration on realm ?
Or even is trying to avoid migration totally is a good idea ? For example:
In the first place, I have a mode called
ModelV1.java, and if we need to update the schema later on , it just required to create another modelModelV2.java. In the start up time of the, the new will copy all the data inModelV1on device toModelV2, then delete allModelV1object.Is this doable or just a stupid idea ?