fix(DB): fixed old-product-analytics wrong view_type

This commit is contained in:
Taha Yassine Kraiem 2025-03-11 13:11:03 +01:00 committed by Kraiem Taha Yassine
parent 264f28ed39
commit 45b8bdef8a
2 changed files with 8 additions and 0 deletions

View file

@ -41,6 +41,10 @@ WHERE metric_of IN ('domainsErrors4xx', 'domainsErrors5xx', 'countSessions',
'speedLocation', 'avgVisitedPages')
OR metric_type IN ('webVitals', 'errors', 'performance', 'resources');
UPDATE public.metrics
SET view_type='chart'
WHERE metric_type = 'funnel';
COMMIT;
\elif :is_next

View file

@ -41,6 +41,10 @@ WHERE metric_of IN ('domainsErrors4xx', 'domainsErrors5xx', 'countSessions',
'speedLocation', 'avgVisitedPages')
OR metric_type IN ('webVitals', 'errors', 'performance', 'resources');
UPDATE public.metrics
SET view_type='chart'
WHERE metric_type = 'funnel';
COMMIT;
\elif :is_next