Commit e09714af authored by rhi's avatar rhi 🐑
Browse files

Fix DB upgrade logic

parent a4a81629
Pipeline #15713447 failed with stages
in 3 minutes and 50 seconds
......@@ -127,7 +127,7 @@ class ServiceDB {
override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {
for (upgradeFrom in oldVersion until newVersion) {
val upgradeTo = oldVersion + 1
val upgradeTo = upgradeFrom + 1"Upgrading database from version $upgradeFrom to $upgradeTo")
try {
val upgradeProc ="upgrade_${upgradeFrom}_$upgradeTo",
Subproject commit c1a82b27fd764042cba7e18ca3af9f538762118b
Subproject commit bdf2baf0b42dfd9b17eb86215e35634f2a89ecde
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment