Added attachment zipping

This commit is contained in:
M66B
2022-11-08 13:33:26 +01:00
parent 119d30e6fb
commit 078820c7c9
2 changed files with 30 additions and 0 deletions

View File

@@ -108,6 +108,12 @@ public interface DaoAttachment {
" AND NOT (error IS :error)")
void setWarning(long id, String error);
@Query("UPDATE attachment" +
" SET name = :name, type = :type, size= :size" +
" WHERE id = :id" +
" AND NOT (name IS name AND type IS :type AND size IS :size)")
void setName(long id, String name, String type, Long size);
@Query("UPDATE attachment" +
" SET type = :type" +
" WHERE id = :id" +