You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sqlcipher_export function does not migrate the user_version from a database. If you want to persist the user_version across an export, you will need to capture it from the old database and set it on the new database. You can use the getVersion() and setVersion(...) functions to perform this.
I come from this sample which actually works for me
https://github.com/sqlcipher/sqlcipher-android-tests/blob/master/src/main/java/net/zetetic/tests/MigrationUserVersion.java
Unfortunately I cannot store DB version over a close and reopen. See my sample below.
Hi I use Library v 2
DATABASE_VERSION = 2;
File unencryptedDatabase = mContext.getDatabasePath(DB_NAME);
File encryptedDatabase = mContext.getDatabasePath("encrypted.db");
encryptedDatabase.delete();
thanks Hans
The text was updated successfully, but these errors were encountered: