Add statement to remove 30 days old logs

This commit is contained in:
Lunastra 2021-12-04 23:30:30 -08:00
parent 05a58ee907
commit 13204721b2

View File

@ -51,6 +51,8 @@ TERMINATED BY ','
ESCAPED BY '"'
LINES TERMINATED BY '\r\n';
-- Remove old logs from the log table
DELETE from log where DATEDIFF(CURRENT_TIMESTAMP, log.LtimeStamp) > 30;
show columns from log;