EyeSeeTea / malariapp

Android app to help with health center assessments (development repository)
GNU General Public License v3.0
6 stars 3 forks source link

Error message when installing an 1.6 APK with a previous installed 1.4 apk #2455

Closed xurxodev closed 3 years ago

xurxodev commented 3 years ago

We have noticed that if we install a new APK without uninstalling the previous app, the new app crashes a lot

xurxodev commented 3 years ago

@ifoche I have tested install 1.6 version from a 1.4 version and migrations is failing. Failing because the migration is created to be installed from the last version. For example:

When you upgrade from 1.4 to 1.6 directly migrations fail because the table is created directly by dbflow model, then when migration is executed is failing by duplicate column error. We should modify this migration to verify previously if the columns already exist I wait until to talk with you and we decide if these changes are necessary or it's an avoidable upgrade use case