diff --git a/ee/scripts/schema/db/init_dbs/clickhouse/1.15.0/1.15.0.sql b/ee/scripts/schema/db/init_dbs/clickhouse/1.15.0/1.15.0.sql index 9e500da74..009395d00 100644 --- a/ee/scripts/schema/db/init_dbs/clickhouse/1.15.0/1.15.0.sql +++ b/ee/scripts/schema/db/init_dbs/clickhouse/1.15.0/1.15.0.sql @@ -39,6 +39,7 @@ CREATE TABLE IF NOT EXISTS experimental.ios_events issue_type Nullable(Enum8('tap_rage'=1,'dead_click'=2,'excessive_scrolling'=3,'bad_request'=4,'missing_resource'=5,'memory'=6,'cpu'=7,'slow_resource'=8,'slow_page_load'=9,'crash'=10,'ml_cpu'=11,'ml_memory'=12,'ml_dead_click'=13,'ml_click_rage'=14,'ml_mouse_thrashing'=15,'ml_excessive_scrolling'=16,'ml_slow_resources'=17,'custom'=18,'js_exception'=19,'mouse_thrashing'=20,'app_crash'=21)), issue_id Nullable(String), transfer_size Nullable(UInt32), + coordinate Tuple(x Nullable(UInt16), y Nullable(UInt16)), direction Nullable(String), message_id UInt64 DEFAULT 0, _timestamp DateTime DEFAULT now() diff --git a/ee/scripts/schema/db/init_dbs/clickhouse/create/init_schema.sql b/ee/scripts/schema/db/init_dbs/clickhouse/create/init_schema.sql index 95674c4d7..c7106d683 100644 --- a/ee/scripts/schema/db/init_dbs/clickhouse/create/init_schema.sql +++ b/ee/scripts/schema/db/init_dbs/clickhouse/create/init_schema.sql @@ -438,6 +438,7 @@ CREATE TABLE IF NOT EXISTS experimental.ios_events issue_type Nullable(Enum8('tap_rage'=1,'dead_click'=2,'excessive_scrolling'=3,'bad_request'=4,'missing_resource'=5,'memory'=6,'cpu'=7,'slow_resource'=8,'slow_page_load'=9,'crash'=10,'ml_cpu'=11,'ml_memory'=12,'ml_dead_click'=13,'ml_click_rage'=14,'ml_mouse_thrashing'=15,'ml_excessive_scrolling'=16,'ml_slow_resources'=17,'custom'=18,'js_exception'=19,'mouse_thrashing'=20,'app_crash'=21)), issue_id Nullable(String), transfer_size Nullable(UInt32), + coordinate Tuple(x Nullable(UInt16), y Nullable(UInt16)), direction Nullable(String), message_id UInt64 DEFAULT 0, _timestamp DateTime DEFAULT now() 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 cf0e4bc3a..0eb63f572 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 @@ -99,6 +99,8 @@ CREATE TABLE IF NOT EXISTS events_ios.swipes seq_index integer NOT NULL, label text NOT NULL, direction text NOT NULL, + x integer DEFAULT NULL, + y integer DEFAULT NULL, PRIMARY KEY (session_id, timestamp, seq_index) ); CREATE INDEX IF NOT EXISTS swipes_session_id_idx ON events_ios.swipes (session_id); diff --git a/ee/scripts/schema/db/init_dbs/postgresql/init_schema.sql b/ee/scripts/schema/db/init_dbs/postgresql/init_schema.sql index 89659c86b..703f43090 100644 --- a/ee/scripts/schema/db/init_dbs/postgresql/init_schema.sql +++ b/ee/scripts/schema/db/init_dbs/postgresql/init_schema.sql @@ -1432,6 +1432,8 @@ $$ seq_index integer NOT NULL, label text NOT NULL, direction text NOT NULL, + x integer DEFAULT NULL, + y integer DEFAULT NULL, PRIMARY KEY (session_id, timestamp, seq_index) ); CREATE INDEX IF NOT EXISTS swipes_session_id_idx ON events_ios.swipes (session_id); 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 ccc4be092..a5382b07d 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 @@ -98,6 +98,8 @@ CREATE TABLE IF NOT EXISTS events_ios.swipes seq_index integer NOT NULL, label text NOT NULL, direction text NOT NULL, + x integer DEFAULT NULL, + y integer DEFAULT NULL, PRIMARY KEY (session_id, timestamp, seq_index) ); CREATE INDEX IF NOT EXISTS swipes_session_id_idx ON events_ios.swipes (session_id); diff --git a/scripts/schema/db/init_dbs/postgresql/init_schema.sql b/scripts/schema/db/init_dbs/postgresql/init_schema.sql index e1767f43c..6e0ef841a 100644 --- a/scripts/schema/db/init_dbs/postgresql/init_schema.sql +++ b/scripts/schema/db/init_dbs/postgresql/init_schema.sql @@ -1107,6 +1107,8 @@ $$ seq_index integer NOT NULL, label text NOT NULL, direction text NOT NULL, + x integer DEFAULT NULL, + y integer DEFAULT NULL, PRIMARY KEY (session_id, timestamp, seq_index) ); CREATE INDEX swipes_session_id_idx ON events_ios.swipes (session_id);