mirror of
https://github.com/haiwen/seafile-admin-docs.git
synced 2025-12-26 02:32:50 +00:00
Clean Database UserActivity
This commit is contained in:
parent
e97853c2cc
commit
6a98aa6396
|
|
@ -29,10 +29,9 @@ Use the following command to clear the activity records:
|
|||
```
|
||||
use seahub_db;
|
||||
DELETE FROM Activity WHERE to_days(now()) - to_days(timestamp) > 90;
|
||||
DELETE FROM UserActivity WHERE to_days(now()) - to_days(timestamp) > 90;
|
||||
```
|
||||
|
||||
The corresponding items in UserActivity will deleted automatically by MariaDB when the foreign keys in Activity table are deleted.
|
||||
|
||||
### Login
|
||||
|
||||
Use the following command to clean the login records:
|
||||
|
|
|
|||
Loading…
Reference in New Issue