fix: clean deletes also zoneEvent range records
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Javi Gallego 2024-11-11 13:57:49 +01:00
parent a79905f7c2
commit eaad989b3a
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ BEGIN
AND ts.id IS NULL;
DELETE FROM claim WHERE ticketCreated < v4Years;
-- Robert ubicacion anterior de travelLog comentario para debug
DELETE FROM zoneEvent WHERE `type` = 'day' AND dated < v3Months;
DELETE FROM zoneEvent WHERE dated < v2Months OR ended < v2Months;
DELETE b FROM buy b
JOIN entryConfig e ON e.defaultEntry = b.entryFk
WHERE b.created < v2Months;