Commit e09714af authored by Ricki Hirner's avatar Ricki Hirner

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
Logger.log.info("Upgrading database from version $upgradeFrom to $upgradeTo")
try {
val upgradeProc = this::class.java.getDeclaredMethod("upgrade_${upgradeFrom}_$upgradeTo", SQLiteDatabase::class.java)
......
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