From 8fc1ec18d889572b10be61bcf5f4d6c3c2c44d2c Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Thu, 7 Jul 2022 20:06:05 +0200 Subject: [PATCH] feat(DB): fixed missing type --- .../helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql | 14 +++++--------- .../helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ee/scripts/helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql b/ee/scripts/helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql index 25fe451d1..3f74ad21d 100644 --- a/ee/scripts/helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql +++ b/ee/scripts/helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql @@ -10,19 +10,15 @@ UPDATE roles SET permissions=array_remove(permissions, 'ERRORS'); ALTER TABLE IF EXISTS dashboards - ADD COLUMN IF NOT - EXISTS description text NOT NULL DEFAULT ''; + ADD COLUMN IF NOT EXISTS description text NOT NULL DEFAULT ''; CREATE - INDEX IF NOT - EXISTS traces_created_at_idx ON traces (created_at); + INDEX IF NOT EXISTS traces_created_at_idx ON traces (created_at); CREATE - INDEX IF NOT - EXISTS traces_action_idx ON traces (action); + INDEX IF NOT EXISTS traces_action_idx ON traces (action); CREATE - INDEX IF NOT - EXISTS users_name_gin_idx ON users USING GIN (name gin_trgm_ops); + INDEX IF NOT EXISTS users_name_gin_idx ON users USING GIN (name gin_trgm_ops); @@ -166,7 +162,7 @@ VALUES ('Captured sessions', 'web vitals', '{ "position": 0 }', true, true, true, 'avg_fps', 'predefined', 'overview') ON CONFLICT (predefined_key) DO UPDATE - SET name =excluded.name, + SET name=excluded.name, category=excluded.category, default_config=excluded.default_config, is_predefined=excluded.is_predefined, diff --git a/scripts/helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql b/scripts/helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql index 1eca4377e..c079b9b69 100644 --- a/scripts/helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql +++ b/scripts/helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql @@ -46,7 +46,7 @@ ALTER TABLE IF EXISTS events.resources COMMIT; CREATE INDEX CONCURRENTLY IF NOT EXISTS projects_project_id_deleted_at_n_idx ON public.projects (project_id) WHERE deleted_at IS NULL; -ALTER TYPE metric_type ADD VALUE IF NOT EXISTS 'predefined'; +ALTER TYPE metric_type ADD VALUE IF NOT EXISTS 'funnel'; INSERT INTO metrics (name, category, default_config, is_predefined, is_template, is_public, predefined_key, metric_type, view_type)