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

@@ -153,6 +153,11 @@ public interface DaoIdentity {
@Query("UPDATE identity SET `primary` = 0 WHERE account = :account AND NOT (`primary` IS 0)")
void resetPrimary(long account);
@Query("UPDATE identity" +
" SET last_modified = :last_modified" +
" WHERE id = :id")
int setIdentityLastModified(long id, Long last_modified);
@Query("DELETE FROM identity WHERE id = :id")
int deleteIdentity(long id);
}