Skip to content

Conversation

@SVKorosteleva
Copy link

This change adds keyAndMigrate methods which perform "PRAGMA cipher_migrate;" call
immediately after calling sqlite3_key_v2
This call is needed to open the database files created in older major SQLCipher version (e.g. 3.x.x)
by newer SQLCipher version (e.g. 4.x.x).
(see #908)
These calls should be performed only once, when opening older database files for the first time.
See https://www.zetetic.net/sqlcipher/sqlcipher-api/#cipher_migrate
and https://discuss.zetetic.net/t/upgrading-to-sqlcipher-4/3283 for more details regarding SQLCipher upgrade

… after setting a key

This change adds `keyAndMigrate` methods which perform "PRAGMA cipher_migrate;" call
immediately after calling `sqlite3_key_v2`
This call is needed to open the database files created in older major SQLCipher version (e.g. 3.x.x)
by newer SQLCipher version (e.g. 4.x.x).
These calls should be performed only once, when opening older database files for the first time.
See https://www.zetetic.net/sqlcipher/sqlcipher-api/#cipher_migrate
and https://discuss.zetetic.net/t/upgrading-to-sqlcipher-4/3283 for more details regarding SQLCipher upgrade
@SVKorosteleva SVKorosteleva changed the title Add interface to perform migration to new major SQLCipher after setting a key Add methods to perform migration to new major SQLCipher after setting a key Dec 2, 2019
@nathanfallet nathanfallet merged commit 4eace8e into stephencelis:master Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants