Added option to show headers

This commit is contained in:
M66B
2018-09-05 07:23:51 +00:00
parent cfb68b904c
commit 49f7a61717
11 changed files with 1061 additions and 37 deletions

View File

@@ -45,7 +45,7 @@ import androidx.sqlite.db.SupportSQLiteDatabase;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 8,
version = 9,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -168,6 +168,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("CREATE INDEX `index_message_ui_found` ON `message` (`ui_found`)");
}
})
.addMigrations(new Migration(8, 9) {
@Override
public void migrate(SupportSQLiteDatabase db) {
Log.i(Helper.TAG, "DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `headers` TEXT");
}
})
.build();
}