Add statement to remove 30 days old logs
This commit is contained in:
parent
05a58ee907
commit
13204721b2
@ -51,6 +51,8 @@ TERMINATED BY ','
|
|||||||
ESCAPED BY '"'
|
ESCAPED BY '"'
|
||||||
LINES TERMINATED BY '\r\n';
|
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;
|
show columns from log;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user