MCPcopy Create free account
hub / github.com/M66B/FairEmail / dropTriggers

Method dropTriggers

app/src/main/java/eu/faircode/email/DB.java:686–692  ·  view source on GitHub ↗
(@NonNull SupportSQLiteDatabase db)

Source from the content-addressed store, hash-verified

684 }
685
686 private static void dropTriggers(@NonNull SupportSQLiteDatabase db) {
687 db.execSQL("DROP TRIGGER IF EXISTS `attachment_insert`");
688 db.execSQL("DROP TRIGGER IF EXISTS `attachment_delete`");
689
690 db.execSQL("DROP TRIGGER IF EXISTS `account_update`");
691 db.execSQL("DROP TRIGGER IF EXISTS `identity_update`");
692 }
693
694 private static void createTriggers(@NonNull SupportSQLiteDatabase db) {
695 db.execSQL("CREATE TRIGGER IF NOT EXISTS attachment_insert" +

Callers 2

onOpenMethod · 0.95
migrateMethod · 0.95

Calls 1

execSQLMethod · 0.45

Tested by

no test coverage detected