Migrate old SQLite-Database from Ionic1

Hey Guys,

I have got an issue with my new Ionic3 application. I have already an Ionic1 application in production and the UserID from our customers is stored in a local SQLDatabase to verify with our backend.

Now we produced a new Ionic3 Version of this app and would like to update the old Ionic1 apps but we don’t know how we can migrate the old UserID to our new application since the users get this UserID during their first app start and have no login credentials like Username/Password (due to anonymity reasons).

We setup the Database in the old application like this:

database = $cordovaSQLite.openDB({
          name: 'AppData.db',
          location: 'default'
        });

For the new Database we use the simple Ionic Storage from @ionic/storage.

I hope you can help me with my issue.

Greetings,
Mike

1 Like