Version 4.3.0-beta2. Fix SQL migration issue when updating from version 18 to 19.

This commit is contained in:
Alex Ning 2021-04-11 08:33:56 +08:00
parent 0724dc861a
commit f4266bb350
2 changed files with 3 additions and 3 deletions

View File

@ -6,8 +6,8 @@ android {
applicationId "ml.docilealligator.infinityforreddit"
minSdkVersion 21
targetSdkVersion 30
versionCode 61
versionName "4.3.0-beta1"
versionCode 62
versionName "4.3.0-beta2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {

View File

@ -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)");
}
};