Skip to content

Upgrading while preserving user_version #66

Closed
@rossimo

Description

@rossimo

While using the SQLiteDatabase.upgradeDatabaseFormatFromVersion1To2() method to convert a database, it seems that the user_version PRAGMA is reset to 0 in the newly converted database. This results in the SQLiteOpenHelper.onCreate() method being called upon my first attempt to use the converted database, even though the database already contains data. Is there a accessible method in the android-database-sqlcipher library that allows me to preserve the version PRAGMA to prevent onCreate() being called redundantly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions