Added local notes

This commit is contained in:
M66B
2021-01-21 16:23:00 +01:00
parent a2c3e9ad57
commit 6b9ac9c54f
11 changed files with 2510 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ import static eu.faircode.email.ServiceAuthenticator.AUTH_TYPE_PASSWORD;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 184,
version = 185,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1809,6 +1809,13 @@ public abstract class DB extends RoomDatabase {
" OR type = '" + EntityFolder.INBOX + "'" +
" OR type = '" + EntityFolder.JUNK + "')");
}
})
.addMigrations(new Migration(184, 185) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `notes` TEXT");
}
});
}