Closed SVKorosteleva closed 3 years ago
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 https://github.com/stephencelis/SQLite.swift/issues/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
keyAndMigrate
sqlite3_key_v2
This change adds
keyAndMigrate
methods which perform "PRAGMA cipher_migrate;" call immediately after callingsqlite3_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 https://github.com/stephencelis/SQLite.swift/issues/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