Use local drafts folder if needed

This commit is contained in:
M66B
2020-12-17 15:05:44 +01:00
parent 92dac6a771
commit 997a51fb70
9 changed files with 2380 additions and 11 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 = 178,
version = 179,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1760,6 +1760,13 @@ public abstract class DB extends RoomDatabase {
" (SELECT id FROM account" +
" WHERE host IN ('imap.arcor.de'))");
}
})
.addMigrations(new Migration(178, 179) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `folder` ADD COLUMN `local` INTEGER NOT NULL DEFAULT 0");
}
});
}