From 97fb6ae61fcfd39435bc3280ac6f9319f7f6cb10 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 6 May 2021 09:57:07 +0300 Subject: [PATCH] fix migration off options table for current profile --- app/src/main/java/net/ktnx/mobileledger/db/DB.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/db/DB.java b/app/src/main/java/net/ktnx/mobileledger/db/DB.java index 9819d23f..3a236944 100644 --- a/app/src/main/java/net/ktnx/mobileledger/db/DB.java +++ b/app/src/main/java/net/ktnx/mobileledger/db/DB.java @@ -108,8 +108,8 @@ abstract public class DB extends RoomDatabase { // SharedPreferences if (toVersion == 59) { try (Cursor c = db.query( - "SELECT p.id, p.theme_hue FROM profiles p WHERE p.id=(SELECT o.value " + - "FROM options WHERE o.profile_uid IS NULL AND o.name=?", + "SELECT p.id, p.theme FROM profiles p WHERE p.id=(SELECT o.value " + + "FROM options o WHERE o.profile_id=0 AND o.name=?)", new Object[]{"profile_id"})) { if (c.moveToFirst()) { -- 2.39.5