mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 21:57:19 +00:00
Added database migration
This commit is contained in:
parent
1ec6fa7eb1
commit
693bb27e9a
2 changed files with 2849 additions and 1 deletions
2843
app/schemas/eu.faircode.email.DB/262.json
Normal file
2843
app/schemas/eu.faircode.email.DB/262.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -68,7 +68,7 @@ import javax.mail.internet.InternetAddress;
|
|||
// https://developer.android.com/topic/libraries/architecture/room.html
|
||||
|
||||
@Database(
|
||||
version = 261,
|
||||
version = 262,
|
||||
entities = {
|
||||
EntityIdentity.class,
|
||||
EntityAccount.class,
|
||||
|
@ -2644,6 +2644,11 @@ public abstract class DB extends RoomDatabase {
|
|||
else
|
||||
db.execSQL("UPDATE `folder` SET `hide_seen` = 0");
|
||||
}
|
||||
}).addMigrations(new Migration(261, 262) {
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||
logMigration(startVersion, endVersion);
|
||||
}
|
||||
}).addMigrations(new Migration(998, 999) {
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||
|
|
Loading…
Reference in a new issue