diff --git a/ee/scripts/helm/db/init_dbs/postgresql/1.8.1/1.8.1.sql b/ee/scripts/helm/db/init_dbs/postgresql/1.8.1/1.8.1.sql index f6204aff5..e495a8e54 100644 --- a/ee/scripts/helm/db/init_dbs/postgresql/1.8.1/1.8.1.sql +++ b/ee/scripts/helm/db/init_dbs/postgresql/1.8.1/1.8.1.sql @@ -5,4 +5,23 @@ $$ SELECT 'v1.8.1-ee' $$ LANGUAGE sql IMMUTABLE; + +INSERT INTO metrics (name, category, default_config, is_predefined, is_template, is_public, predefined_key, metric_type, + view_type) +VALUES ('Fetch Calls with Errors', 'errors', '{ + "col": 4, + "row": 2, + "position": 0 +}', true, true, true, 'calls_errors', 'predefined', 'table') +ON CONFLICT (predefined_key) DO UPDATE + SET name=excluded.name, + category=excluded.category, + default_config=excluded.default_config, + is_predefined=excluded.is_predefined, + is_template=excluded.is_template, + is_public=excluded.is_public, + metric_type=excluded.metric_type, + view_type=excluded.view_type; + + COMMIT; \ No newline at end of file diff --git a/ee/scripts/helm/db/init_dbs/postgresql/init_schema.sql b/ee/scripts/helm/db/init_dbs/postgresql/init_schema.sql index 238cf3273..38fa6572f 100644 --- a/ee/scripts/helm/db/init_dbs/postgresql/init_schema.sql +++ b/ee/scripts/helm/db/init_dbs/postgresql/init_schema.sql @@ -1344,7 +1344,7 @@ VALUES ('Captured sessions', 'web vitals', '{ "position": 0 }', true, true, true, 'errors_per_domains', 'predefined', 'table'), ('Fetch Calls with Errors', 'errors', '{ - "col": 2, + "col": 4, "row": 2, "position": 0 }', true, true, true, 'calls_errors', 'predefined', 'table'), diff --git a/scripts/helm/db/init_dbs/postgresql/1.8.1/1.8.1.sql b/scripts/helm/db/init_dbs/postgresql/1.8.1/1.8.1.sql index 170851a80..34d57d75e 100644 --- a/scripts/helm/db/init_dbs/postgresql/1.8.1/1.8.1.sql +++ b/scripts/helm/db/init_dbs/postgresql/1.8.1/1.8.1.sql @@ -5,4 +5,23 @@ $$ SELECT 'v1.8.1' $$ LANGUAGE sql IMMUTABLE; + +INSERT INTO metrics (name, category, default_config, is_predefined, is_template, is_public, predefined_key, metric_type, + view_type) +VALUES ('Fetch Calls with Errors', 'errors', '{ + "col": 4, + "row": 2, + "position": 0 +}', true, true, true, 'calls_errors', 'predefined', 'table') +ON CONFLICT (predefined_key) DO UPDATE + SET name=excluded.name, + category=excluded.category, + default_config=excluded.default_config, + is_predefined=excluded.is_predefined, + is_template=excluded.is_template, + is_public=excluded.is_public, + metric_type=excluded.metric_type, + view_type=excluded.view_type; + + COMMIT; \ No newline at end of file diff --git a/scripts/helm/db/init_dbs/postgresql/init_schema.sql b/scripts/helm/db/init_dbs/postgresql/init_schema.sql index 4d6ad7657..00588d0f5 100644 --- a/scripts/helm/db/init_dbs/postgresql/init_schema.sql +++ b/scripts/helm/db/init_dbs/postgresql/init_schema.sql @@ -1130,7 +1130,7 @@ VALUES ('Captured sessions', 'web vitals', '{ "position": 0 }', true, true, true, 'errors_per_domains', 'predefined', 'table'), ('Fetch Calls with Errors', 'errors', '{ - "col": 2, + "col": 4, "row": 2, "position": 0 }', true, true, true, 'calls_errors', 'predefined', 'table'),