Skip to content

Best practices on migration ? #2192

@kuno

Description

@kuno

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions