Skip to content

Commit

Permalink
Merge pull request #416 from haiwen/Clean-Database-UserActivity
Browse files Browse the repository at this point in the history
Clean Database UserActivity
  • Loading branch information
freeplant authored Dec 2, 2024
2 parents e97853c + 6a98aa6 commit 3a739b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions manual/administration/clean_database.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3a739b1

Please sign in to comment.