mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Initialize on demand
This commit is contained in:
@@ -133,8 +133,11 @@ public interface DaoOperation {
|
||||
@Query("UPDATE operation SET state = :state WHERE id = :id AND NOT (state IS :state)")
|
||||
int setOperationState(long id, String state);
|
||||
|
||||
@Query("UPDATE operation SET state = NULL WHERE state IS NOT NULL")
|
||||
int resetOperationStates();
|
||||
@Query("UPDATE operation SET state = NULL" +
|
||||
" WHERE account = :account" +
|
||||
" AND state IS NOT NULL" +
|
||||
" AND name <> '" + EntityOperation.SEND + "'")
|
||||
int resetOperationStates(long account);
|
||||
|
||||
@Query("UPDATE operation SET error = :error WHERE id = :id AND NOT (error IS :error)")
|
||||
int setOperationError(long id, String error);
|
||||
|
||||
Reference in New Issue
Block a user