title: Update iOS app with updated core data model
body: <p>I'm almost finished with my 1.1 release of my first iOS app, in it I have made two small changes to my core data model. More specific, I have added two attributes to one of my tables. This is my first core data app and therefore my first core data update to a live app, and I'm a bit nerveous about shipping code that might not work for my current users. Since it's a small update I'm guessing that Apples automatic migration method will do, but I don't want to guess. </p>
  
  <p>The relevant code looks like this:</p>
  
  <pre><code>NSError *error = nil;
  __persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]];
  NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:
                          [NSNumber numberWithBool:YES],   NSMigratePersistentStoresAutomaticallyOption,
                          [NSNumber numberWithBool:YES],  NSInferMappingModelAutomaticallyOption, nil];
  if (![__persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:options error:&amp;error])
  {
  
      //NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
      abort();
  }    
  </code></pre>
  
  <p>In 1.1 I've added <code>NSDictionary *options</code>.</p>
  
  <p>In my view controller I make sure the the needed rows isn't nil like this:</p>
  
  <pre><code>if (currentPage.inputType == @"drawing") {
      [pageView changeToDrawing];
  } else if (currentPage.inputType == @"text") {
      [pageView changeToText];
  } else {
      currentPage.inputType = @"text";
      [pageView changeToDrawing];
  }
  </code></pre>
  
  <p>Basically, is these changes enough or do I have to do something else?</p>