Added daily cleanup job

This commit is contained in:
M66B
2018-09-04 07:02:54 +00:00
parent 4802a8b2c8
commit e8da25a674
9 changed files with 159 additions and 39 deletions

View File

@@ -40,4 +40,8 @@ public interface DaoLog {
@Insert
long insertLog(EntityLog log);
@Query("DELETE FROM log" +
" WHERE time < :before")
int deleteLogs(long before);
}