openreplay/scripts/helm/db/init_dbs/postgresql/1.8.3/1.8.3.sql
Taha Yassine Kraiem 19922f206b feat(chalice): webhook changes
feat(DB): webhook changes
2022-10-26 12:48:18 +02:00

13 lines
No EOL
273 B
PL/PgSQL

BEGIN;
CREATE OR REPLACE FUNCTION openreplay_version()
RETURNS text AS
$$
SELECT 'v1.8.3'
$$ LANGUAGE sql IMMUTABLE;
ALTER TABLE IF EXISTS public.webhooks
ALTER COLUMN type SET DEFAULT 'webhook';
ALTER TYPE webhook_type ADD VALUE IF NOT EXISTS 'msteams';
COMMIT;