CoreStore
CoreStore copied to clipboard
Progressive migration
Hi,
I have a query, it is not an issue.
I have a live version of the application, and with the new version, I have to add few more attributes to existing entity. How exactly I can add a progressive migration to the new version. I am using xcdatamodel class and added the new version to it.
previous code:
fileprivate let dataStack = DataStack(xcodeModelName: "MyDBModel")
Now i am using:
fileprivate let dataStack = DataStack(xcodeModelName: "MyDBModel", bundle: Bundle.main, migrationChain: ["MyDBModel", "MyDBModelV2"])
Will it work? or do I need to change something else too? What is the best practice for progressive migration with core store?
@KrishnaKaira Are you using xcdatamodeld files? If so, as long as you update your models then it should be good to go.