clean FileHistory records (#15)

This commit is contained in:
王健辉 2021-03-20 15:37:25 +08:00 committed by GitHub
parent cd6859504a
commit 58ff0ea0bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,16 @@ DELETE FROM PermAudit WHERE to_days(now()) - to_days(timestamp) > 90;
```
### File History
To clean the file history records, login in to MySQL/MariaDB and use the following command:
```
use seahub_db;
DELETE FROM FileHistory WHERE to_days(now()) - to_days(timestamp) > 90;
```
### Outdated Library Data
Since version 6.2, we offer command to clear outdated library records in Seahub database,