Objectbox-java: Versioning of database

Created on 28 Mar 2017  路  5Comments  路  Source: objectbox/objectbox-java

How to version the database in a live environment?

more info required

Most helpful comment

Lately, we added http://greenrobot.org/objectbox/documentation/meta-model-ids-uids/.

For removed properties: the space will be freed with the next put.

All 5 comments

i test migration of ObjectBox, if you add or remove a field from entity, ObjectBox handle it automatically

but i think should need default value feature for field of entity

@rishabharora3 To be more clear, it would help if you could state what exactly you need.

@greenrobot please add more info to the docs about migration. what side effects? what should we expect if some fields have been removed from entity.

Lately, we added http://greenrobot.org/objectbox/documentation/meta-model-ids-uids/.

For removed properties: the space will be freed with the next put.

Hi,
Does support versioning like sqlite? So that we can use Migration like sqllite to upgrade the database. What i need is when the app are uninstalled, the database should be kept there and not be removed with the app. Thanks.

Was this page helpful?
0 / 5 - 0 ratings