user13583757
user13583757

Reputation: 51

Is a core data migration required when changing the Transformer for a Transformable attribute?

After getting the error described at the link below, I have set the Transfomer to NSSecureUnarchiveFromData (it was nil before) for an entity's attribute.

CoreData crash error Xcode 11 Beta, IOS 13 Beta

I am using the transformable type to store an array.

Everything seems to work fine when I update my app, and data is preserved, however, I haven't had to perform any kind of migration. I just made the changes in the same xcdatamodel that I had before.

Why haven't I had to do a migration, or should I have done one and could problems be caused further down the line if I don't do one?

Upvotes: 3

Views: 422

Answers (1)

Mitesh
Mitesh

Reputation: 534

Yes, you need to do migration. Here is some more information for this

Core Data: Rename Attribute without having issues with users and their current data

Upvotes: 0

Related Questions