mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Progressive migration #208
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @KrishnaKaira on GitHub (Apr 25, 2018).
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?
@JohnEstropia commented on GitHub (Apr 25, 2018):
@KrishnaKaira Are you using xcdatamodeld files? If so, as long as you update your models then it should be good to go.