rehacktive / waspdb

key/value data storage library for Android, pure java and encrypted
Apache License 2.0
226 stars 24 forks source link

Model changes #9

Closed pedrohenriquerls closed 8 years ago

pedrohenriquerls commented 8 years ago

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

rehacktive commented 8 years ago

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.

pedrohenriquerls commented 8 years ago

great thanks a lot :+1: