rehacktive / waspdb

key/value data storage library for Android, pure java and encrypted

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Model changes

pedrohenriquerls opened this issue · comments

How can I do with model changes? If I change my model attributes waspDb will still working without migrations?

commented

There's no "schema", so technically there's no migration.
If you change your model, you can't expect to read a different object from a previously (different) stored one.

I suggest in this case to do a "migration" procedure, retrieving previously stored objects, changing them to the new ones and store the new objects again.

great thanks a lot 👍