Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file is not a database after upgrading to 1.7 version #972

Open
codrinamerigo opened this issue Jul 13, 2020 · 4 comments
Open

file is not a database after upgrading to 1.7 version #972

codrinamerigo opened this issue Jul 13, 2020 · 4 comments

Comments

@codrinamerigo
Copy link

I am working on a Xamarin.Forms app which was using the 1.6 version.

After upgrading the package to the 1.7 version and upgrading the app (via appcenter or official stores) we are not able to read the database and have a 'file is not a db' error.

we downgrading to 1.6 to make the app update read the old version...

@joehanna
Copy link

See #955

@praeclarum
Copy link
Owner

Hi @codrinamerigo sorry for the trouble.

Can you confirm that you're passing in the encryption key to the database in the constructor? Are you using the synchronous connection or the async?

@codrinamerigo
Copy link
Author

Hi @praeclarum yes we are passing th key

SQLiteConnectionString stringConn = new SQLiteConnectionString(path, false, _keyEnc);
SQLiteConnection conn = new SQLiteConnection(stringConn);

@sjlombardo
Copy link
Contributor

@codrinamerigo when you updated you moved from SQLCipher 3 to SQLCipher 4. Your application will need to account for this via database migration or backward compatibility settings.

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

No branches or pull requests

4 participants