You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: archives/archives.go
+23-28Lines changed: 23 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -847,9 +847,9 @@ func DeleteArchivedOrgRecords(ctx context.Context, rt *runtime.Runtime, now time
847
847
}
848
848
849
849
constsqlSelectRolledUpDailyArchives=`
850
-
SELECT id, location
850
+
SELECT uuid, id, org_id, start_date::timestamp with time zone AS start_date, period, archive_type, hash, location, size, record_count, needs_deletion, rollup_id
851
851
FROM archives_archive
852
-
WHERE org_id = $1 AND archive_type = $2 AND period = $3 AND rollup_id IS NOT NULL AND deleted_on IS NOT NULL`
852
+
WHERE org_id = $1 AND archive_type = $2 AND period = 'D' AND rollup_id IS NOT NULL AND deleted_on IS NOT NULL`
853
853
854
854
// DeleteRolledUpDailyArchives deletes daily archives that have been rolled up into monthlies and had their records deleted
0 commit comments