mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Added editing rule groups
This commit is contained in:
@@ -86,6 +86,11 @@ public interface DaoRule {
|
||||
" WHERE id = :id AND NOT (enabled IS :enabled)")
|
||||
int setRuleEnabled(long id, boolean enabled);
|
||||
|
||||
@Query("UPDATE rule" +
|
||||
" SET `group` = :group" +
|
||||
" WHERE id = :id AND NOT (`group` IS :group)")
|
||||
int setRuleGroup(long id, String group);
|
||||
|
||||
@Query("UPDATE rule" +
|
||||
" SET applied = applied + 1, last_applied = :time" +
|
||||
" WHERE id = :id")
|
||||
|
||||
Reference in New Issue
Block a user