feat(DB): support new issue type
This commit is contained in:
parent
2fd52f4628
commit
c9c50d6650
3 changed files with 10 additions and 5 deletions
|
|
@ -2,3 +2,7 @@ CREATE OR REPLACE FUNCTION openreplay_version AS() -> 'v1.11.0-ee';
|
|||
|
||||
ALTER TABLE experimental.events
|
||||
MODIFY COLUMN issue_type Nullable(Enum8('click_rage'=1,'dead_click'=2,'excessive_scrolling'=3,'bad_request'=4,'missing_resource'=5,'memory'=6,'cpu'=7,'slow_resource'=8,'slow_page_load'=9,'crash'=10,'ml_cpu'=11,'ml_memory'=12,'ml_dead_click'=13,'ml_click_rage'=14,'ml_mouse_thrashing'=15,'ml_excessive_scrolling'=16,'ml_slow_resources'=17,'custom'=18,'js_exception'=19,'mouse_thrashing'=20));
|
||||
|
||||
ALTER TABLE experimental.issues
|
||||
MODIFY COLUMN type Enum8('click_rage'=1,'dead_click'=2,'excessive_scrolling'=3,'bad_request'=4,'missing_resource'=5,'memory'=6,'cpu'=7,'slow_resource'=8,'slow_page_load'=9,'crash'=10,'ml_cpu'=11,'ml_memory'=12,'ml_dead_click'=13,'ml_click_rage'=14,'ml_mouse_thrashing'=15,'ml_excessive_scrolling'=16,'ml_slow_resources'=17,'custom'=18,'js_exception'=19,'mouse_thrashing'=20);
|
||||
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ CREATE TABLE IF NOT EXISTS experimental.issues
|
|||
(
|
||||
project_id UInt16,
|
||||
issue_id String,
|
||||
type Enum8('click_rage'=1,'dead_click'=2,'excessive_scrolling'=3,'bad_request'=4,'missing_resource'=5,'memory'=6,'cpu'=7,'slow_resource'=8,'slow_page_load'=9,'crash'=10,'ml_cpu'=11,'ml_memory'=12,'ml_dead_click'=13,'ml_click_rage'=14,'ml_mouse_thrashing'=15,'ml_excessive_scrolling'=16,'ml_slow_resources'=17,'custom'=18,'js_exception'=19),
|
||||
type Enum8('click_rage'=1,'dead_click'=2,'excessive_scrolling'=3,'bad_request'=4,'missing_resource'=5,'memory'=6,'cpu'=7,'slow_resource'=8,'slow_page_load'=9,'crash'=10,'ml_cpu'=11,'ml_memory'=12,'ml_dead_click'=13,'ml_click_rage'=14,'ml_mouse_thrashing'=15,'ml_excessive_scrolling'=16,'ml_slow_resources'=17,'custom'=18,'js_exception'=19,'mouse_thrashing'=20),
|
||||
context_string String,
|
||||
context_keys Array(String),
|
||||
context_values Array(Nullable(String)),
|
||||
|
|
|
|||
|
|
@ -5,14 +5,10 @@ $$
|
|||
SELECT 'v1.11.0-ee'
|
||||
$$ LANGUAGE sql IMMUTABLE;
|
||||
|
||||
|
||||
|
||||
ALTER TABLE events.inputs
|
||||
ADD COLUMN duration integer NULL,
|
||||
ADD COLUMN hesitation integer NULL;
|
||||
|
||||
|
||||
|
||||
ALTER TABLE public.projects
|
||||
ALTER COLUMN gdpr SET DEFAULT '{
|
||||
"maskEmails": true,
|
||||
|
|
@ -21,4 +17,9 @@ ALTER TABLE public.projects
|
|||
"defaultInputMode": "obscured"
|
||||
}'::jsonb;
|
||||
|
||||
ALTER TYPE issue_type ADD VALUE IF NOT EXISTS 'mouse_thrashing';
|
||||
|
||||
ALTER TABLE events.clicks
|
||||
ADD COLUMN hesitation integer NULL;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Add table
Reference in a new issue