Can I rename a database already created in android?
In my application update, I would like to rename the old database and install a new one, then compare some values ββand finally delete the old ones.
I am making a creation from a sqlite file in a resource folder. That is why I cannot rename all tables and insert new ones.
Clarification:
The old database will contain only one table, in which I need to compare the values ββfrom the new one (from the update database).
Both databases were copied from the sqlite file in the resource folder.
As soon as I compare the values ββfrom the old database with the new ones, I will delete the old one and use the new one in its place with the values ββthat I compared.
What I was thinking about was to rename the old one, create a new one in its place and do everything higher.
source
share