Added notes color

This commit is contained in:
M66B
2021-04-08 09:40:21 +02:00
parent a7ec00e6ea
commit 4497fb060c
9 changed files with 2554 additions and 44 deletions

View File

@@ -732,8 +732,11 @@ public interface DaoMessage {
" OR NOT (warning IS :warning))")
int setMessageContent(long id, boolean content, String language, Boolean plain_only, String preview, String warning);
@Query("UPDATE message SET notes = :notes WHERE id = :id AND NOT (notes IS :notes)")
int setMessageNotes(long id, String notes);
@Query("UPDATE message" +
" SET notes = :notes, notes_color = :color" +
" WHERE id = :id" +
" AND NOT (notes IS :notes AND notes_color IS :color)")
int setMessageNotes(long id, String notes, Integer color);
@Query("UPDATE message" +
" SET size = :size, total = :total" +