diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-04-11 00:33:56 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-04-11 00:33:56 +0000 |
commit | f4266bb35055687dbe46a7da54a9caeaad3fd9d4 (patch) | |
tree | 560442e64ca52a2f3b6d79de840c0b500d30e5c3 /app/src | |
parent | 0724dc861ad957370b7aa03d2f89375d0d6ebe4d (diff) | |
download | infinity-for-reddit-f4266bb35055687dbe46a7da54a9caeaad3fd9d4.tar infinity-for-reddit-f4266bb35055687dbe46a7da54a9caeaad3fd9d4.tar.gz infinity-for-reddit-f4266bb35055687dbe46a7da54a9caeaad3fd9d4.tar.bz2 infinity-for-reddit-f4266bb35055687dbe46a7da54a9caeaad3fd9d4.tar.lz infinity-for-reddit-f4266bb35055687dbe46a7da54a9caeaad3fd9d4.tar.xz infinity-for-reddit-f4266bb35055687dbe46a7da54a9caeaad3fd9d4.tar.zst infinity-for-reddit-f4266bb35055687dbe46a7da54a9caeaad3fd9d4.zip |
Version 4.3.0-beta2. Fix SQL migration issue when updating from version 18 to 19.
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/RedditDataRoomDatabase.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/RedditDataRoomDatabase.java b/app/src/main/java/ml/docilealligator/infinityforreddit/RedditDataRoomDatabase.java index 4cb5cd43..f190a9fb 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/RedditDataRoomDatabase.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/RedditDataRoomDatabase.java @@ -329,7 +329,7 @@ public abstract class RedditDataRoomDatabase extends RoomDatabase { private static final Migration MIGRATION_18_19 = new Migration(18, 19) { @Override public void migrate(@NonNull SupportSQLiteDatabase database) { - database.execSQL("INSERT INTO accounts(username, karma, is_current_user) VALUES (\"-\", 0, false)"); + database.execSQL("INSERT INTO accounts(username, karma, is_current_user) VALUES (\"-\", 0, 0)"); } }; |