From 572f0cd19d7562e135eacec48c28f32c9677cd0c Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Wed, 11 Oct 2023 17:20:08 +0200 Subject: [PATCH] Fix job_run_details_cleanup_fn --- initdb/02_2_signalk_cron.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initdb/02_2_signalk_cron.sql b/initdb/02_2_signalk_cron.sql index 53b7e47..45fd21c 100644 --- a/initdb/02_2_signalk_cron.sql +++ b/initdb/02_2_signalk_cron.sql @@ -354,7 +354,7 @@ DECLARE BEGIN -- Remove job run log older than 3 months RAISE NOTICE 'job_run_details_cleanup_fn'; - DELETE FROM postgres.cron.job_run_details + DELETE FROM cron.job_run_details WHERE start_time <= NOW() AT TIME ZONE 'UTC' - INTERVAL '91 DAYS'; END; $$ language plpgsql;