From d7173a2f75e98409fbeb4a89e5448963dd1debb6 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 20 Oct 2021 07:48:12 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/DB.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/DB.java b/app/src/main/java/eu/faircode/email/DB.java index cac971cca2..c8aa7ed7a6 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -1205,7 +1205,7 @@ public abstract class DB extends RoomDatabase { @Override public void migrate(@NonNull SupportSQLiteDatabase db) { Log.i("DB migration from version " + startVersion + " to " + endVersion); - db.execSQL("DROP VIEW `folderview`"); + db.execSQL("DROP VIEW IF EXISTS `folderview`"); } }) .addMigrations(new Migration(87, 88) { @@ -2129,7 +2129,7 @@ public abstract class DB extends RoomDatabase { @Override public void migrate(@NonNull SupportSQLiteDatabase db) { Log.i("DB migration from version " + startVersion + " to " + endVersion); - db.execSQL("DROP VIEW `account_view`"); + 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) { @@ -2182,7 +2182,7 @@ public abstract class DB extends RoomDatabase { Log.i("DB migration from version " + startVersion + " to " + endVersion); db.execSQL("CREATE INDEX `index_account_synchronize` ON `account` (`synchronize`)"); db.execSQL("CREATE INDEX `index_account_category` ON `account` (`category`)"); - db.execSQL("DROP VIEW `account_view`"); + db.execSQL("DROP VIEW IF EXISTS `account_view`"); db.execSQL("CREATE VIEW IF NOT EXISTS `account_view` AS " + TupleAccountView.query); } }).addMigrations(new Migration(998, 999) {