3lvis / DATAStack

100% Swift Simple Boilerplate Free Core Data Stack. NSPersistentContainer
Other
214 stars 44 forks source link

Is it possible to enable "lightweight" migrations? #87

Closed jimijon closed 7 years ago

jimijon commented 7 years ago

Where would I init with the proper dictionary?

[NSMigratePersistentStoresAutomaticallyOption: true,
       NSInferMappingModelAutomaticallyOption: true]
3lvis commented 7 years ago

Hi @jimijon,

Should be possible, yes :)

3lvis commented 7 years ago

It's already enabled by default.

https://github.com/SyncDB/DATAStack/blob/199b560e92d7adc0c21404620501ceab232ec496/Source/DATAStack.swift#L396