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

Cipher Migrate feature for iOS and Android #113

Open
wants to merge 3 commits into
base: latest
Choose a base branch
from

Conversation

jlorente
Copy link

This PR includes a new feature for those who want to upgrade from an old version of the plugin to a newer one without making its users uninstall and reinstall the application.

The feature is activated by adding a cipherMigrate param "true" when calling window.sqlitePlugin.openDatabase. It only executes the "PRAGMA cipher_migrate" sentence if the cipherMigrate param is true and there is some error when opening the database.

It has been tested successfully on iOS and Android by upgrading apps from plugin version 0.1.12-rc3 to plugin version 0.5.4.

I have not updated the docs yet, because I thought that maybe this needs some discussion, but I will do if there is no problem with the feature.

@bhandaribhuminpfizer
Copy link

Are you going to merge this? Because of this issue we have to fork the code and update it.
I see it's not in the new version either.

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