diff options
Diffstat (limited to 'app/src/main/java/Account')
-rw-r--r-- | app/src/main/java/Account/AccountDao.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/Account/AccountDao.java b/app/src/main/java/Account/AccountDao.java index b3672bb5..aa7b7f19 100644 --- a/app/src/main/java/Account/AccountDao.java +++ b/app/src/main/java/Account/AccountDao.java @@ -19,6 +19,9 @@ public interface AccountDao { @Query("UPDATE accounts SET is_current_user = 0 WHERE is_current_user = 1") void markAllAccountsNonCurrent(); + @Query("DELETE FROM accounts WHERE is_current_user = 1") + void deleteCurrentAccount(); + @Query("DELETE FROM accounts") void deleteAllAccounts(); |