mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-30 09:31:11 +01:00
Revert "Reduce number of invalidations"
This reverts commit 845eff88b4.
This commit is contained in:
@@ -68,10 +68,6 @@ import io.requery.android.database.sqlite.RequerySQLiteOpenHelperFactory;
|
||||
EntityLog.class
|
||||
},
|
||||
views = {
|
||||
EntityAccountProp.class,
|
||||
EntityFolderProp.class,
|
||||
EntityAttachmentProp.class,
|
||||
EntityOperationProp.class
|
||||
}
|
||||
)
|
||||
|
||||
@@ -871,14 +867,6 @@ public abstract class DB extends RoomDatabase {
|
||||
public void migrate(SupportSQLiteDatabase db) {
|
||||
Log.i("DB migration from version " + startVersion + " to " + endVersion);
|
||||
db.execSQL("DROP VIEW `folderview`");
|
||||
db.execSQL("CREATE VIEW `accountprop` AS " +
|
||||
"SELECT id, name, color, synchronize, `primary`, notify, browse, swipe_left, swipe_right, created, `order` FROM account");
|
||||
db.execSQL("CREATE VIEW `folderprop` AS " +
|
||||
"SELECT id, account, name, type, download, display, unified, notify FROM folder");
|
||||
db.execSQL("CREATE VIEW `attachmentprop` AS " +
|
||||
"SELECT id, message, name FROM attachment");
|
||||
db.execSQL("CREATE VIEW `operationprop` AS " +
|
||||
"SELECT id, folder, message, name FROM operation");
|
||||
}
|
||||
})
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user