Added apply to all user folders

This commit is contained in:
M66B
2019-10-19 17:01:59 +02:00
parent c6ff0f3149
commit 4ce024991a
5 changed files with 168 additions and 0 deletions

View File

@@ -263,6 +263,13 @@ public interface DaoFolder {
boolean synchronize, boolean poll, boolean download,
int sync_days, int keep_days, boolean auto_delete);
@Query("UPDATE folder" +
" SET `sync_days` = :sync_days" +
", `keep_days` = :keep_days" +
" WHERE account = :account" +
" AND type = '" + EntityFolder.USER + "'")
int setFolderProperties(long account, int sync_days, int keep_days);
@Query("UPDATE folder SET keywords = :keywords WHERE id = :id")
int setFolderKeywords(long id, String keywords);