Skip to content

Changing the datatype of a property #825

@ksdc-anandhid

Description

@ksdc-anandhid

Hi,
I noticed that when I change the datatype of property the existing data is lost as Objectbox does not support migrating data to the new datatype. One solution that was recommended in the Object box website is to add a new property with a different name so that custom logic can be added to migrate the data from the old property to the new one. But in doing so the property name along with the datatype is getting changed. Is there any other way to change the datatype and still have the old data in the new type. Please advise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions