openreplay/scripts/schema/db/init_dbs/postgresql/1.11.0/1.11.0.sql
Taha Yassine Kraiem c07474bdfa feat(chalice): health-check
feat(assist): health-check
feat(peers): health-check
feat(sourcemaps-reader): health-check
2023-03-13 17:02:11 +01:00

25 lines
No EOL
566 B
PL/PgSQL

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;
ALTER TYPE issue_type ADD VALUE IF NOT EXISTS 'mouse_thrashing';
ALTER TABLE events.clicks
ADD COLUMN hesitation integer NULL;
COMMIT;