I have an app on playstore which contains a database.
Now in the new release, database is changed, a new table is entered.
Currently i am using sqlite studio and put the database file in the assets which is later copied as an app database. See this example.
I have to delete the previous database to copy new, or if i copy new(overwrite), in both cases user data is lost.
Maybe i can attach a new table to current database, but what if i have to add a column in table in previous database???
How should i handle this???
Edit: If i have to copy the data from database and re-insert, how can i know the tables and columns which currently exist in my database.
Please guide me...