Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6866275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:09:46+00:00 2026-05-27T03:09:46+00:00

What is best possible way for in-app Sqlite Data Migration. As I am new

  • 0

What is best possible way for in-app Sqlite Data Migration. As I am new to iphone development , I created my app using Sqlite. Please help the concern

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:09:47+00:00Added an answer on May 27, 2026 at 3:09 am

    You create a database upgrade procedure and make it execute the first time when the application starts.

    So this will create a new table through a create statement when application loads for the first time.

    And also it will help you save all the data that user has in his current database. This is what is most recommended as there is no additional requirement to migrate your existing database anywhere.

    Also please refer to my answer in this link:

    Don't wan't to replacing the old database when app is updated

    Hope this helps you.

    If you need more help then please feel free to contact me.

    EDIT:

    In case when you need to make changes to an exiting table which contains some data then you need to do some steps as follows:

    1) Rename the existing table

    Say TableName was ‘TestTable’, So Rename the table to ‘TestTableOld’

    2) Create a new table called ‘TestTable’ which has the new columns you want and other altercations made.

    3) Copy data from ‘TestTableOld’ to ‘TestTable’ with the query like:

    Insert into TestTable(‘col1′,col2’…’coln’) Values Select col1, col2, col3,…’coln’ From TestTableOld;

    4) Drop the table ‘TestTableOld’

    Follow the above four step procedure as this would work as an alter statement and also it would preserve all your data from your original table.

    Hope you get it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Best way to stream MP3 from an iPhone app? Hi, could any
What is the best possible way using jQuery to give height and width to
Possible Duplicates: iPhone: Post data to php page Passing Data From iPhone app to
Possible Duplicate: Using SSL in an iPhone App - Export Compliance I am in
I’m trying to decide the best way to load data into my app, it’s
What's your opinion for the best possible way to build asp.net multilingual localized web
I want to call this WS http://www.webservicex.net/country.asmx?op=GetCountries What is the best possible way to
Possible Duplicate: Best way to stop SQL Injection in PHP I am creating a
Possible Duplicate: Best way to copy the entire contents of a directory in C#
Possible Duplicate: Best way to stop SQL Injection in PHP I have seen some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.