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

Issue with migrating sqlite database from default cordova location #616

Open
omnibyte-agriffin opened this issue Jan 22, 2025 · 0 comments

Comments

@omnibyte-agriffin
Copy link

I am facing an issue with the cordova sqlite database not getting migrated and then deleted.

This is the code using cordova in the previous version:
this.createdb = this.sqlite.create({ name: 'myapp.db', location: 'default' });

In my capacitor code, I have this:

await this.sqliteConnection.addSQLiteSuffix();
await this.sqliteConnection.deleteOldDatabases();

When I use TestFlight to revert back to a cordova version of the app, all my data that I saved before updating to the new app is there. The new data does not show up in the app when I update.

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

1 participant