Skip to content

Issue with migrating sqlite database from default cordova location #616

@omnibyte-agriffin

Description

@omnibyte-agriffin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions