Cloud sync: switches for send/receive

This commit is contained in:
M66B
2023-01-20 18:48:04 +01:00
parent d667ce0272
commit 3acb8500c8
6 changed files with 97 additions and 11 deletions

View File

@@ -288,11 +288,6 @@ public interface DaoAccount {
" AND (NOT (swipe_left IS :left) OR NOT (swipe_right IS :right))")
int setAccountSwipes(long id, Long left, Long right);
@Query("UPDATE account" +
" SET last_modified = :last_modified" +
" WHERE id = :id")
int setLastModified(long id, Long last_modified);
@Query("UPDATE account SET `primary` = 0 WHERE NOT (`primary` IS 0)")
void resetPrimary();
@@ -305,6 +300,11 @@ public interface DaoAccount {
@Query("UPDATE account SET capability_uidl = :uidl WHERE id = :id AND NOT (capability_uidl IS :uidl)")
int setAccountUidl(long id, Boolean uidl);
@Query("UPDATE account" +
" SET last_modified = :last_modified" +
" WHERE id = :id")
int setAccountLastModified(long id, Long last_modified);
@Query("DELETE FROM account WHERE id = :id")
int deleteAccount(long id);
}