mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-07-21 12:08:39 +02:00
Adding new CoreStoreObject to schema gives "The model used to open the store is incompatible with the one used to create the store" error #351
Reference in New Issue
Block a user
Originally created by @mariusgab on GitHub (Nov 19, 2020).
I want to add a new CoreStoreObject class to my current schema
This returns error "The model used to open the store is incompatible with the one used to create the store".
What exactly is wrong here if anyone can help me?
@JohnEstropia commented on GitHub (Nov 20, 2020):
@VMariusGabriel You can't use migrations with the synchronous
addStorageAndWait()method. Use the asynchronousaddStorage(...completion:). See https://github.com/JohnEstropia/CoreStore#starting-migrations@mariusgab commented on GitHub (Nov 20, 2020):
Thank you!