Added batch folder poll

This commit is contained in:
M66B
2019-10-19 20:22:47 +02:00
parent c59f57b6a8
commit 713978a2ae
3 changed files with 21 additions and 5 deletions

View File

@@ -264,11 +264,12 @@ public interface DaoFolder {
int sync_days, int keep_days, boolean auto_delete);
@Query("UPDATE folder" +
" SET `sync_days` = :sync_days" +
", `keep_days` = :keep_days" +
" SET poll = :poll" +
", 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);
int setFolderProperties(long account, boolean poll, int sync_days, int keep_days);
@Query("UPDATE folder SET keywords = :keywords WHERE id = :id")
int setFolderKeywords(long id, String keywords);