brodycj / cordova-sqlite-ext

A Cordova/PhoneGap plugin to open and use sqlite databases on Android/iOS/macOS/Windows with REGEXP (Android/macOS/iOS) and pre-populated databases (Android/iOS/macOS/Windows)
Other
72 stars 55 forks source link

What happend when you update your app with new data? #68

Open uselessai opened 7 years ago

uselessai commented 7 years ago

Hi!!.. right know I am developing an app and when I update the database I have to delete the app to have the new changes in my app..

So.. when I upload my app to Google Play and Apple Store.. If I update the app and the database this changes will be incorporate when the user update the app?.. But how the database already exits, so, what is going to happend??

brodycj commented 7 years ago

You hit a major pitfall of pre-populated databases. There is not much of a good upgrade path.

The one idea I can think of is to use a different database name with every release and deal with the data migration.