View | Details | Raw Unified | Return to bug 34027
Collapse All | Expand All

(-)a/misc/cronjobs/cleanup_database.pl (-1 / +4 lines)
Lines 382-387 if ($pZ3950) { Link Here
382
382
383
if ($pLogs) {
383
if ($pLogs) {
384
    print "Purging records from action_logs.\n" if $verbose;
384
    print "Purging records from action_logs.\n" if $verbose;
385
    for (0..10000){
386
        $dbh->do(q{ INSERT INTO action_logs (user,timestamp) VALUES (52,"2022-01-01 09:00:00") });
387
        $dbh->do(q{ UPDATE action_logs SET timestamp = "2020-01-01 10:00:00" ORDER BY action_id DESC LIMIT 1 });
388
    }
385
    my $log_query = q{
389
    my $log_query = q{
386
            DELETE FROM action_logs
390
            DELETE FROM action_logs
387
            WHERE timestamp < date_sub(curdate(), INTERVAL ? DAY)
391
            WHERE timestamp < date_sub(curdate(), INTERVAL ? DAY)
388
- 

Return to bug 34027