title: Iphone data migration on application update
body: <p>I am working on an iphone application that uses sqlite to store application and user data.</p>
  
  <p>This is the first version of the application and I wonder what I need to do to prepare for the future versions of the app.</p>
  
  <p>Is this enough?
  1. Make sure app version is correct in the XCode Project settings
  2. Add a version number in sqlite file so that it can be read later</p>
  
  <p>Lets simulate the next update!
  1. New version of the app is downloaded to the device
  2. The app reads the version number stored earlier in a sqlite table/field
  3. App knows that application data has changed so it needs to update the sqlite and also
  it wants to retain the user data (in app favorites &amp; Notes).
  4. Schema has not changed so it starts to insert the new application data into some tables.
  5. It does not touch the user data tables
  6. It updates the version number of the sqlite db.</p>
  
  <p>Have I missed something that will come back and bite me when it is time for update?</p>