dkharrat / NexusData

Core Data for Android
Apache License 2.0
72 stars 19 forks source link

Data mirgration upon db version update is not working #2

Open aman-semusi opened 10 years ago

aman-semusi commented 10 years ago

Hello,

Today came across this api and its cool. To find coredata model structure for android. I am sucessfull in building all projects and getting ToDo sample.

It running fine until I got db version updated from 3->4 where i changed some column name and added one new and remove one from old. And things worked fine, but i come across an issue of Data got lost. Where in case of iOS their is no such case.

Also i am have started working over a UI plugin for handling db-strucure in somewhat similar way we have for iOS. So my plan forth is to get a perspective ready for db modle like we have xdatamodel in iOS. We can create similar and in the UI editor we can provide a feature to create table entities and attributes. Also we can enhance it to handle Predicates too.

Thnx for helping such a realistic problem for android developer where core-data relation is to be handled manually by developers where we can maintain same in CoreData Model.

dkharrat commented 10 years ago

Glad to know you're finding the library useful. Yep, this is a known issue. Currently, migrations are not supported, but it's in the list of things I'd like to support soon.

I'll keep this issue open to track it.