mirror of https://github.com/M66B/FairEmail.git
Rebuild search index
This commit is contained in:
parent
1e437dc8a7
commit
22761c31bb
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 = 248,
|
||||
version = 249,
|
||||
entities = {
|
||||
EntityIdentity.class,
|
||||
EntityAccount.class,
|
||||
|
@ -2493,6 +2493,13 @@ public abstract class DB extends RoomDatabase {
|
|||
logMigration(startVersion, endVersion);
|
||||
EntityMessage.convert(context);
|
||||
}
|
||||
}).addMigrations(new Migration(248, 249) {
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||
Fts4DbHelper.delete(context);
|
||||
Fts5DbHelper.delete(context);
|
||||
db.execSQL("UPDATE `message` SET fts = 0");
|
||||
}
|
||||
}).addMigrations(new Migration(998, 999) {
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||
|
|
Loading…
Reference in New Issue