openreplay/ee/scripts/helm/db/init_dbs/postgresql/1.6.1/1.6.1.sql
Taha Yassine Kraiem 7f9bc99bcf feat(DB): traces/trails index
feat(api): get all possible traces/trails actions
feat(api): search traces/trails by actions
feat(api): search traces/trails by user
2022-06-17 10:41:58 +02:00

15 lines
No EOL
373 B
PL/PgSQL

BEGIN;
CREATE OR REPLACE FUNCTION openreplay_version()
RETURNS text AS
$$
SELECT 'v1.6.1-ee'
$$ LANGUAGE sql IMMUTABLE;
ALTER TABLE IF EXISTS dashboards
ADD COLUMN IF NOT EXISTS description text NOT NULL DEFAULT '';
CREATE INDEX IF NOT EXISTS traces_created_at_idx ON traces (created_at);
CREATE INDEX IF NOT EXISTS traces_action_idx ON traces (action);
COMMIT;