Deploying sqlite DB on iPhone app upgrade

前端 未结 2 977
无人及你
无人及你 2021-02-01 10:14

I\'m using sqlite as a datasource in an iPhone app. I have two questions regarding application upgrades.

1.) The data is all config/nontransactional. Meaning, it is rea

2条回答
  •  温柔的废话
    2021-02-01 11:11

    When the user upgrades the app, the old app bundle is uninstalled and the new app bundle is installed, but the user data associated with the app bundle is intact.

    So your choices are to a) leave your data in the app bundle (it'll be replaced automatically) or b) unilaterally copy it to the user data area on first run (so you'll intentionally replace it on upgrade).

    I'll leave #2 to a sqlite-knowledgable person, but you may want to use the "sqlite" tag instead of the "mysql" tag if that's what you're actually doing.

提交回复
热议问题