|
|
@ -323,14 +323,7 @@ public abstract class AppDatabase extends RoomDatabase { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void migrate(@NonNull SupportSQLiteDatabase database) { |
|
|
|
public void migrate(@NonNull SupportSQLiteDatabase database) { |
|
|
|
database.execSQL("ALTER TABLE `InstanceEntity` ADD COLUMN `version` TEXT"); |
|
|
|
database.execSQL("ALTER TABLE `InstanceEntity` ADD COLUMN `version` TEXT"); |
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static final Migration MIGRATION_20_21 = new Migration(20, 21) { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void migrate(@NonNull SupportSQLiteDatabase database) { |
|
|
|
|
|
|
|
database.execSQL("ALTER TABLE `TootEntity` ADD COLUMN `markdownMode` INTEGER"); |
|
|
|
database.execSQL("ALTER TABLE `TootEntity` ADD COLUMN `markdownMode` INTEGER"); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|