Clear on fresh start

This commit is contained in:
M66B
2019-04-17 10:53:15 +02:00
parent e0ca27a9cc
commit 4a6ede366e
4 changed files with 26 additions and 13 deletions

View File

@@ -122,6 +122,9 @@ public interface DaoAccount {
@Query("UPDATE account SET tbd = 1 WHERE id = :id")
int setAccountTbd(long id);
@Query("UPDATE account SET last_connected = NULL")
int clearAccountConnected();
@Query("DELETE FROM account WHERE tbd = 1")
int deleteAccountsTbd();
}