From 45b8bdef8a6cc48a60d51c0c669d2aba5adfbdbe Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Tue, 11 Mar 2025 13:11:03 +0100 Subject: [PATCH] fix(DB): fixed old-product-analytics wrong view_type --- ee/scripts/schema/db/init_dbs/postgresql/1.22.0/1.22.0.sql | 4 ++++ scripts/schema/db/init_dbs/postgresql/1.22.0/1.22.0.sql | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ee/scripts/schema/db/init_dbs/postgresql/1.22.0/1.22.0.sql b/ee/scripts/schema/db/init_dbs/postgresql/1.22.0/1.22.0.sql index fbedb48a0..460cebf6d 100644 --- a/ee/scripts/schema/db/init_dbs/postgresql/1.22.0/1.22.0.sql +++ b/ee/scripts/schema/db/init_dbs/postgresql/1.22.0/1.22.0.sql @@ -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 diff --git a/scripts/schema/db/init_dbs/postgresql/1.22.0/1.22.0.sql b/scripts/schema/db/init_dbs/postgresql/1.22.0/1.22.0.sql index a08ba5048..1ca6750d5 100644 --- a/scripts/schema/db/init_dbs/postgresql/1.22.0/1.22.0.sql +++ b/scripts/schema/db/init_dbs/postgresql/1.22.0/1.22.0.sql @@ -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