From f8f982425e66a261820bb831e8b5b3eee1baf4ee Mon Sep 17 00:00:00 2001 From: "Jonathan R. Warden" Date: Sat, 23 Nov 2024 10:38:56 -0700 Subject: [PATCH] Fix syntax error in delete-old-data.sql --- sql/delete-old-data.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sql/delete-old-data.sql b/sql/delete-old-data.sql index 07ed381..05776d5 100644 --- a/sql/delete-old-data.sql +++ b/sql/delete-old-data.sql @@ -1,5 +1,4 @@ -- delete data older than one month. It's taking about 18 days to fill a gig, and we have -- 3 gig volume currently. That gives us 54 days. But 30 days is plenty and this gives us margin -- in case the rate of growth of data increases. -delete from dataset join stories using id -where timestamp <= unixepoch()-30*24*60*60 +delete from dataset join stories using (id) where timestamp <= unixepoch()-30*24*60*60