diff --git a/ee/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql b/ee/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql index 74159fab7..0ad9bcb74 100644 --- a/ee/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql +++ b/ee/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql @@ -124,13 +124,13 @@ ALTER TABLE IF EXISTS public.metrics CREATE TABLE IF NOT EXISTS public.assist_events ( - event_id varchar NOT NULL PRIMARY KEY, - project_id integer NOT NULL, - session_id varchar NOT NULL, - event_type varchar NOT NULL, - timestamp bigint NOT NULL, - duration integer, - agent_id integer + event_id varchar NOT NULL PRIMARY KEY, + project_id integer NOT NULL, + session_id varchar NOT NULL, + event_type varchar NOT NULL, + timestamp bigint NOT NULL, + duration integer, + agent_id integer ); CREATE TABLE IF NOT EXISTS public.assist_events_aggregates @@ -163,6 +163,8 @@ SET gdpr=(SELECT * LIMIT 1) WHERE jsonb_typeof(gdpr) = 'array'; +ALTER TYPE issue_type ADD VALUE IF NOT EXISTS 'app_crash'; + COMMIT; \elif :is_next diff --git a/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql b/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql index 66c6ba944..ffffec871 100644 --- a/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql +++ b/scripts/schema/db/init_dbs/postgresql/1.15.0/1.15.0.sql @@ -132,6 +132,8 @@ SET gdpr=(SELECT * LIMIT 1) WHERE jsonb_typeof(gdpr) = 'array'; +ALTER TYPE issue_type ADD VALUE IF NOT EXISTS 'app_crash'; + COMMIT; \elif :is_next