From b54cb8efb6c26cfecbbe19e9ac18a06ba003bc07 Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Fri, 29 Nov 2024 17:28:43 +0100 Subject: [PATCH] Update 20240830124836_setup_propdefs_tables.sql --- .../20240830124836_setup_propdefs_tables.sql | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rust/property-defs-rs/tests/test_migrations/20240830124836_setup_propdefs_tables.sql b/rust/property-defs-rs/tests/test_migrations/20240830124836_setup_propdefs_tables.sql index ec83e55a73dae7..30995aca47fc52 100644 --- a/rust/property-defs-rs/tests/test_migrations/20240830124836_setup_propdefs_tables.sql +++ b/rust/property-defs-rs/tests/test_migrations/20240830124836_setup_propdefs_tables.sql @@ -9,6 +9,7 @@ CREATE TABLE IF NOT EXISTS posthog_eventdefinition ( volume_30_day INTEGER, query_usage_30_day INTEGER, team_id INTEGER NOT NULL, + project_id INTEGER NULL, last_seen_at TIMESTAMPTZ NOT NULL, created_at TIMESTAMPTZ NOT NULL, CONSTRAINT posthog_eventdefinition_team_id_name_80fa0b87_uniq UNIQUE (team_id, name) @@ -24,6 +25,7 @@ CREATE TABLE IF NOT EXISTS posthog_propertydefinition ( property_type_format VARCHAR(50), volume_30_day INTEGER, team_id INTEGER NOT NULL, + project_id INTEGER NULL, group_type_index SMALLINT, type SMALLINT NOT NULL DEFAULT 1 ); @@ -35,7 +37,8 @@ CREATE TABLE IF NOT EXISTS posthog_eventproperty ( id SERIAL PRIMARY KEY, event VARCHAR(400)NOT NULL, property VARCHAR(400) NOT NULL, - team_id INTEGER NOT NULL + team_id INTEGER NOT NULL, + project_id INTEGER NULL ); -CREATE UNIQUE INDEX posthog_event_property_unique_team_event_property ON posthog_eventproperty (team_id, event, property); \ No newline at end of file +CREATE UNIQUE INDEX posthog_event_property_unique_team_event_property ON posthog_eventproperty (team_id, event, property);