# Migrate old SQLite-Database from Ionic1

**URL:** <https://forum.ionicframework.com/t/migrate-old-sqlite-database-from-ionic1/95105>\
**Category:** ionic-v3\
**Created:** [June 20, 2017, 11:22am UTC](https://forum.ionicframework.com/t/migrate-old-sqlite-database-from-ionic1/95105 "2017-06-20T11:22:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike1707](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Mike1707](https://forum.ionicframework.com/u/Mike1707)\
**Post date:** [June 20, 2017, 11:22am UTC](https://forum.ionicframework.com/t/migrate-old-sqlite-database-from-ionic1/95105/1 "2017-06-20T11:22:19Z")

</div>

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:

```auto
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
