Added renaming of attachments

This commit is contained in:
M66B
2024-06-06 17:24:36 +02:00
parent f64961b224
commit f162304427
4 changed files with 74 additions and 4 deletions

View File

@@ -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" +