feat(DB): fixed missing type
This commit is contained in:
parent
16c70044fb
commit
8fc1ec18d8
2 changed files with 6 additions and 10 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue