mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Added renaming of attachments
This commit is contained in:
@@ -116,6 +116,12 @@ public interface DaoAttachment {
|
||||
" 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 name = :name" +
|
||||
" WHERE id = :id" +
|
||||
" AND NOT (name IS :name)")
|
||||
void setName(long id, String name);
|
||||
|
||||
@Query("UPDATE attachment" +
|
||||
" SET type = :type" +
|
||||
" WHERE id = :id" +
|
||||
|
||||
Reference in New Issue
Block a user