In your write-up for Migration and Compatibility you have:
Note : When opening a database connection to run PRAGMA cipher_migrate
, you must include the SQLITE_OPEN_CREATE
flag as the migration process will temporarily attach a new database during the migration process.
Can you update this to CREATE_IF_NECESSARY
? The SQLITE_OPEN_CREATE
flag isn’t present in the SQCipher SQLiteDatabase class.
It was really confusing for a while until I ran across your CipherMigrateTest.java example.