0

I am building a new application and fully expect the datamodel to change in the future. I was wondering if the existing constructs have a versioning attribute that can be used for detecting a change that will trigger a migration.

4

1 回答 1

0

我通过导出在模拟器的 Application-Document 目录中找到的 SQLite DB 找到了这一点。

ls  ~/Library/Application\ Support/iPhone\ Simulator/4.3/Applications/64A2DBF0-CBCC-4975-8366-0EC800D1D1F7/Documents/MyApplication.sqlite

部分转储:

"Z_VERSION","Z_UUID","Z_PLIST"
"1","A6722D4A-3DBB-4D48-8356-D173A1C288AA","bpl .... (etc)

这个值是在 NSManagedObject 中管理的吗?

于 2011-06-19T22:55:50.250 回答