From 230555cbd785f9c4c8d9a35fa12c11eae9328cdd Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 9 Apr 2022 11:45:03 +0200 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/DB.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/DB.java b/app/src/main/java/eu/faircode/email/DB.java index 259eeb3b24..010c17bf6c 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -1605,9 +1605,8 @@ public abstract class DB extends RoomDatabase { @Override public void migrate(@NonNull SupportSQLiteDatabase db) { logMigration(startVersion, endVersion); - db.execSQL("CREATE VIEW IF NOT EXISTS `account_view` AS " + - TupleAccountView.query.replace(", category", "")); - db.execSQL("CREATE VIEW IF NOT EXISTS `identity_view` AS " + TupleIdentityView.query); + //db.execSQL("CREATE VIEW IF NOT EXISTS `account_view` AS " + TupleAccountView.query); + //db.execSQL("CREATE VIEW IF NOT EXISTS `identity_view` AS " + TupleIdentityView.query); db.execSQL("CREATE VIEW IF NOT EXISTS `folder_view` AS " + TupleFolderView.query); } }) @@ -2146,9 +2145,8 @@ public abstract class DB extends RoomDatabase { @Override public void migrate(@NonNull SupportSQLiteDatabase db) { logMigration(startVersion, endVersion); - db.execSQL("DROP VIEW IF EXISTS `account_view`"); - db.execSQL("CREATE VIEW IF NOT EXISTS `account_view` AS " + - TupleAccountView.query.replace(", category", "")); + //db.execSQL("DROP VIEW IF EXISTS `account_view`"); + //db.execSQL("CREATE VIEW IF NOT EXISTS `account_view` AS " + TupleAccountView.query); } }).addMigrations(new Migration(207, 208) { @Override