Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47a5b528 authored by cketti's avatar cketti
Browse files

Avoid NULL values in result set of sub-query

parent 19b7d449
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ class MigrationTo58 {

    private static void cleanUpMessagePartsTable(SQLiteDatabase db) {
        db.execSQL("DELETE FROM message_parts WHERE root NOT IN " +
                "(SELECT message_part_id FROM messages WHERE deleted = 0)");
                "(SELECT message_part_id FROM messages WHERE deleted = 0 AND message_part_id IS NOT NULL)");
    }

    static void createDeleteMessageTrigger(SQLiteDatabase db) {