Files
edgeever/migrations/0039_scheduled_task_run_retention.sql
T

3 lines
102 B
SQL

DELETE FROM scheduled_task_runs
WHERE started_at < strftime('%Y-%m-%dT%H:%M:%fZ', 'now', '-30 days');