clean up stats
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled

This commit is contained in:
Jurajk
2025-12-20 21:58:52 +01:00
parent 2bc1b780b8
commit 86b98e8c16
11 changed files with 58 additions and 609 deletions

View File

@@ -0,0 +1,5 @@
-- This migration is irreversible as we're deleting historical data
-- If needed, you would need to restore from a backup
-- No-op down migration since we can't restore deleted tracking events
SELECT 1;

View File

@@ -0,0 +1,10 @@
-- Remove tracking events that match current ignored patterns
-- Remove visits to ignored paths
DELETE FROM user_visits WHERE
'path' = '/tracking' OR
'path' = '/metrics' OR
'path' LIKE '/css/%' OR
'path' LIKE '/js/%' OR
'path' = '/boxes/ws' OR
'path' LIKE '%favicon%';