feat(DB): changed GDPR default values
feat(DB): heuristics delta
This commit is contained in:
parent
e7791a36a3
commit
2edb88f1b3
4 changed files with 46 additions and 2 deletions
24
ee/scripts/schema/db/init_dbs/postgresql/1.11.0/1.11.0.sql
Normal file
24
ee/scripts/schema/db/init_dbs/postgresql/1.11.0/1.11.0.sql
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
BEGIN;
|
||||
CREATE OR REPLACE FUNCTION openreplay_version()
|
||||
RETURNS text AS
|
||||
$$
|
||||
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,
|
||||
"sampleRate": 33,
|
||||
"maskNumbers": false,
|
||||
"defaultInputMode": "obscured"
|
||||
}'::jsonb;
|
||||
|
||||
COMMIT;
|
||||
|
|
@ -253,7 +253,7 @@ $$
|
|||
"maskEmails": true,
|
||||
"sampleRate": 33,
|
||||
"maskNumbers": false,
|
||||
"defaultInputMode": "plain"
|
||||
"defaultInputMode": "obscured"
|
||||
}'::jsonb,
|
||||
first_recorded_session_at timestamp without time zone NULL DEFAULT NULL,
|
||||
sessions_last_check_at timestamp without time zone NULL DEFAULT NULL,
|
||||
|
|
|
|||
20
scripts/schema/db/init_dbs/postgresql/1.11.0/1.11.0.sql
Normal file
20
scripts/schema/db/init_dbs/postgresql/1.11.0/1.11.0.sql
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
BEGIN;
|
||||
CREATE OR REPLACE FUNCTION openreplay_version()
|
||||
RETURNS text AS
|
||||
$$
|
||||
SELECT 'v1.11.0'
|
||||
$$ 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,
|
||||
"sampleRate": 33,
|
||||
"maskNumbers": false,
|
||||
"defaultInputMode": "obscured"
|
||||
}'::jsonb;
|
||||
|
||||
COMMIT;
|
||||
|
|
@ -190,7 +190,7 @@ $$
|
|||
"maskEmails": true,
|
||||
"sampleRate": 33,
|
||||
"maskNumbers": false,
|
||||
"defaultInputMode": "plain"
|
||||
"defaultInputMode": "obscured"
|
||||
}'::jsonb,
|
||||
first_recorded_session_at timestamp without time zone NULL DEFAULT NULL,
|
||||
sessions_last_check_at timestamp without time zone NULL DEFAULT NULL,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue