Added fail safe

This commit is contained in:
M66B 2022-03-05 15:43:53 +01:00
parent 22ac4a9b98
commit 2d71351ddd
1 changed files with 6 additions and 1 deletions

View File

@ -436,7 +436,12 @@ public abstract class DB extends RoomDatabase {
db.execSQL("DROP TRIGGER IF EXISTS `attachment_insert`");
db.execSQL("DROP TRIGGER IF EXISTS `attachment_delete`");
}
createTriggers(db);
try {
createTriggers(db);
} catch (Throwable ex) {
Log.e(ex);
}
}
});
}