Reset accounts in debug mode

This commit is contained in:
M66B
2021-02-22 13:35:25 +01:00
parent 2b828c1c5a
commit 535a258410
4 changed files with 60 additions and 1 deletions

View File

@@ -196,6 +196,9 @@ public interface DaoAccount {
@Query("UPDATE account SET `primary` = 0 WHERE NOT (`primary` IS 0)")
void resetPrimary();
@Query("UPDATE account SET `created` = 0 WHERE id = :id")
void resetCreated(long id);
@Query("UPDATE account SET tbd = 1 WHERE id = :id AND NOT (tbd IS 1)")
int setAccountTbd(long id);