1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Fixed DB upgrade in some situations

This commit is contained in:
M66B 2022-09-17 09:24:04 +02:00
parent 5c736a3281
commit 60f635160f

View file

@ -2447,7 +2447,7 @@ public abstract class DB extends RoomDatabase {
public void migrate(@NonNull SupportSQLiteDatabase db) {
logMigration(startVersion, endVersion);
db.execSQL("ALTER TABLE `folder` ADD COLUMN `inherited_type` TEXT");
db.execSQL("DROP VIEW `folder_view`");
db.execSQL("DROP VIEW IF EXISTS `folder_view`");
db.execSQL("CREATE VIEW IF NOT EXISTS `folder_view` AS " + TupleFolderView.query);
}
}).addMigrations(new Migration(241, 242) {