Search code examples
sqlitecore-data

SQLite columns are duplicated with a number in the attribute name (Core Data)


Inoticed that some of my attributes are duplicated in the SQLite file. For example I see two columns ZENDDATE and ZENDDATE1. The same for some other columns. Why does it happen? How can I get rid of them (or I shouldn't)?

enter image description here


Solution

  • Eventually I figuared it out. For eg. if you have few sub-entities with the same attributes, columns will be named as ZATTR, ZATTR1, ZATTR2 and etc. 2 out of 5 my sub-entities have an endDate attribute.