core data - ios coredata table schema sync -


it better ask here, since could't see light on google search results.

finally, ios app , web app can smoothly sync data. on ios side, core data used playing offline data. on web app, user able add custom fields database table.so, newly added field exists in newer request results. how should manage app, continue work offline data containing newly added fields.

what best pattern solve issue? there framework related?

edit: old rest result

{   "status":"success",   "data":{     "id":1,     "createddatetime":"2012-05-07 08:18:11",     "modifieddatetime":"2012-05-07 08:18:11",     "createdbyuser":{       "id":1,       "username":"super"     },     "modifiedbyuser":{       "id":1,       "username":"super"     },     "owner":{       "id":1,       "username":"super"     },     "department":null,     "firstname":"first",    },   "message":null,   "errors":null } 

after custom field addition, new rest result:

 {       "status":"success",       "data":{         "id":1,         "createddatetime":"2012-05-07 08:18:11",         "modifieddatetime":"2012-05-07 08:18:11",         "createdbyuser":{           "id":1,           "username":"super"         },         "modifiedbyuser":{           "id":1,           "username":"super"         },         "owner":{           "id":1,           "username":"super"         },         "department":null,         "firstname":"first",         "customfield":"hello",       },       "message":null,       "errors":null     } 

there detailed discussion on dynamically adding core data attributes here.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -