feat(postgres): changed schema
This commit is contained in:
parent
d93b683d7b
commit
8b4f9c3080
4 changed files with 22 additions and 4 deletions
9
ee/scripts/helm/db/init_dbs/postgresql/1.5.0/1.5.0.sql
Normal file
9
ee/scripts/helm/db/init_dbs/postgresql/1.5.0/1.5.0.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
BEGIN;
|
||||
CREATE OR REPLACE FUNCTION openreplay_version()
|
||||
RETURNS text AS
|
||||
$$
|
||||
SELECT 'v1.5.0-ee'
|
||||
$$ LANGUAGE sql IMMUTABLE;
|
||||
|
||||
ALTER TYPE public.error_source ADD VALUE IF NOT EXISTS 'elasticsearch';
|
||||
COMMIT;
|
||||
|
|
@ -7,7 +7,7 @@ CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
|||
CREATE OR REPLACE FUNCTION openreplay_version()
|
||||
RETURNS text AS
|
||||
$$
|
||||
SELECT 'v1.4.0-ee'
|
||||
SELECT 'v1.5.0-ee'
|
||||
$$ LANGUAGE sql IMMUTABLE;
|
||||
|
||||
|
||||
|
|
@ -504,7 +504,7 @@ $$
|
|||
IF NOT EXISTS(SELECT *
|
||||
FROM pg_type typ
|
||||
WHERE typ.typname = 'error_source') THEN
|
||||
CREATE TYPE error_source AS ENUM ('js_exception','bugsnag','cloudwatch','datadog','newrelic','rollbar','sentry','stackdriver','sumologic');
|
||||
CREATE TYPE error_source AS ENUM ('js_exception','bugsnag','cloudwatch','datadog','newrelic','rollbar','sentry','stackdriver','sumologic', 'elasticsearch');
|
||||
END IF;
|
||||
|
||||
IF NOT EXISTS(SELECT *
|
||||
|
|
|
|||
9
scripts/helm/db/init_dbs/postgresql/1.5.0/1.5.0.sql
Normal file
9
scripts/helm/db/init_dbs/postgresql/1.5.0/1.5.0.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
BEGIN;
|
||||
CREATE OR REPLACE FUNCTION openreplay_version()
|
||||
RETURNS text AS
|
||||
$$
|
||||
SELECT 'v1.5.0'
|
||||
$$ LANGUAGE sql IMMUTABLE;
|
||||
|
||||
ALTER TYPE public.error_source ADD VALUE IF NOT EXISTS 'elasticsearch';
|
||||
COMMIT;
|
||||
|
|
@ -6,7 +6,7 @@ CREATE SCHEMA IF NOT EXISTS events;
|
|||
CREATE OR REPLACE FUNCTION openreplay_version()
|
||||
RETURNS text AS
|
||||
$$
|
||||
SELECT 'v1.4.0'
|
||||
SELECT 'v1.5.0'
|
||||
$$ LANGUAGE sql IMMUTABLE;
|
||||
|
||||
-- --- accounts.sql ---
|
||||
|
|
@ -419,7 +419,7 @@ $$
|
|||
|
||||
-- --- errors.sql ---
|
||||
|
||||
CREATE TYPE error_source AS ENUM ('js_exception', 'bugsnag', 'cloudwatch', 'datadog', 'newrelic', 'rollbar', 'sentry', 'stackdriver', 'sumologic');
|
||||
CREATE TYPE error_source AS ENUM ('js_exception', 'bugsnag', 'cloudwatch', 'datadog', 'newrelic', 'rollbar', 'sentry', 'stackdriver', 'sumologic', 'elasticsearch');
|
||||
CREATE TYPE error_status AS ENUM ('unresolved', 'resolved', 'ignored');
|
||||
CREATE TABLE errors
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue