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.
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.