Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-11-2011, 06:39 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 83
djp_phillips is on a distinguished road
Default sqlite database app update

Can anyone enlighten me to what happens to my sqlite database when I publish an update of my app.

I've got a pre populated database and my app syncs with a remote server, now I'm going to publish an updated version of my app, I would like to package the latest database with it.

But I am worried that old data that I deleted for the app update will still appear on the app because people updating will have this data already in their database.

How can I be sure people will get my new database and not carry on the old one ? I could always rename the database file? But is this good practise ?
djp_phillips is offline   Reply With Quote
Old 05-11-2011, 07:11 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

you can write the code that the first launch will check if user have in Documents a file called "myDatabase.sqlite" if so, delete it and replace with the database on resources.
__________________
dany_dev is offline   Reply With Quote
Reply

Bookmarks

Tags
app, data, migration, sqlite, updat

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 356
7 members and 349 guests
doffing81, dre, iOS.Lover, Kirkout, MikaelBartlett, oztemel, PlutoPrime
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:02 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0