Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Deleting the app is sometimes not the case!</strong> Suggest, your app has already been published! You can't just add new entity to the data base and go ahead - you need to perform migration!</p> <p><strong>For those who doesn't want to dig into documentation and is searching for a quick fix:</strong></p> <ol> <li>Open your .xcdatamodeld file</li> <li>click on Editor</li> <li>select Add model version...</li> <li>Add a new version of your model (the new group of datamodels added)</li> <li>select the main file, open file inspector (right-hand panel)</li> <li>and under <code>Versioned core data model</code> select your new version of data model for current data model</li> <li>THAT'S NOT ALL ) You should perform so called "light migration".</li> <li>Go to your <code>AppDelegate</code> and find where the <code>persistentStoreCoordinator</code> is being created</li> <li>Find this line <code>if (![_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:nil error:&amp;error])</code></li> <li>Replace <code>nil</code> options with <code>@{NSMigratePersistentStoresAutomaticallyOption:@YES, NSInferMappingModelAutomaticallyOption:@YES}</code> (actually provided in the commented code in that method)</li> <li>Here you go, have fun!</li> </ol> <p>P.S. This only applies for lightweight migration. For your migration to qualify as a lightweight migration, your changes must be confined to this narrow band:</p> <ul> <li>Add or remove a property (attribute or relationship).</li> <li>Make a nonoptional property optional.</li> <li>Make an optional attribute nonoptional, as long as you provide a default value.</li> <li>Add or remove an entity.</li> <li>Rename a property.</li> <li>Rename an entity.</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload