AppDatabase: fix migration

main
Alibek Omarov 5 years ago
parent 343b121d7b
commit 857bedc995
  1. 7
      app/src/main/java/com/keylesspalace/tusky/db/AppDatabase.java

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

Loading…
Cancel
Save