How can I call the onUpgradedatabase method ?
Background: I am making a backup on the SD card of the complete database. And the user can restore this database.
But, if at the same time (between backup and recovery) the application update changes to the database, I will have a problem with recovery. After restoration, there are no new columns.
Therefore, I want to call a method onUpgradeto add all new / changed columns.
Or is there a better way to do this?
source
share