Small optimization

This commit is contained in:
M66B
2019-11-01 10:25:57 +01:00
parent 776059e465
commit dffecce642
2 changed files with 6 additions and 3 deletions

View File

@@ -103,4 +103,8 @@ public interface DaoAttachment {
@Query("DELETE FROM attachment" +
" WHERE id = :id")
int deleteAttachment(long id);
@Query("DELETE FROM attachment" +
" WHERE message = :message")
int deleteAttachments(long message);
}