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 7727031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:21:28+00:00 2026-06-01T05:21:28+00:00

i have a sqlite file in my app. the app is with enterprise certificate

  • 0

i have a sqlite file in my app. the app is with enterprise certificate .

Now , if i am going to create new version with the changes in database then :

1) i have to change my Sqlite file name ?
2) if yes , then is there any way that if any person who is using my app, who has his saved data in app , will be inserted automatically in new version of my app .

otherwise if i create new file and then the older data would be removed!!!

Thanks in advance..

  • 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-06-01T05:21:30+00:00Added an answer on June 1, 2026 at 5:21 am

    1) AFAIK, when you update, the old app bundle is replaced with the new app bundle. But the user data is untouched. i.e. the copy of the sqlite DB which the app changes with use by the user, is not deleted/replaced.

    2) So, you can possibly ship changes to the DB as queries:

    a) New tables go in as CREATE TABLE queries.

    b) Changes to table structure go in as ALTER TABLE queries.

    3) Now, one problem is, you didn’t think about all this when you shipped the older version. So how will you make sure the queries 2a and 2b are executed only on upgrade?

    a) When you first get control in the application, before allowing user interaction, fire a dummy SELECT SINGLE * FROM <tablename> on a table you have ‘changed’ in new version.

    b) Use sqlite3_column_count and sqlite3_column_name to find out which version of the app the DB corresponds to [old or new].

    c) If it is new version (i.e. new columns already exist), do nothing, else fire the queries I mentioned earlier as 2a and 2b.

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

Sidebar

Related Questions

I have a script file for parsing through a SQLite database. I now need
I have a SQlite database file with records which comes with my app. I
I have an app with version 1.0 on app store which uses sqlite database
I have a *.sqlite file... but I need the database in *.sl3 format? What
I have an SQLite database file exported from Scraperwiki with .sqlite file extension. How
I have a database file that is generated on a PC using Sqlite. This
I have an sqlite file inside my iPhone app. I want the users to
In my app, I have a pretty huge datamodel and its .sqlite data file.
I am working on a Core Data app, and have populated the sqlite file
I am doing an app in android, I have .sqlite file in my system

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.