diff --git a/migrations/frontend/1680707560_sg_telemetry_allowlist/down.sql b/migrations/frontend/1680707560_sg_telemetry_allowlist/down.sql new file mode 100644 index 0000000000000..8504fca15da39 --- /dev/null +++ b/migrations/frontend/1680707560_sg_telemetry_allowlist/down.sql @@ -0,0 +1,2 @@ +-- This migration was generated by the command `sg telemetry add` +DELETE FROM event_logs_export_allowlist WHERE event_name IN (SELECT * FROM UNNEST('{AccessRequestsPageViewed,AccessRequestFailed,CreateAccessRequestSucceeded,AccessRequestRejected,AccessRequestApproved,SearchInputAdd,SearchInputGoto,SearchInputCommand}'::TEXT[])); diff --git a/migrations/frontend/1680707560_sg_telemetry_allowlist/metadata.yaml b/migrations/frontend/1680707560_sg_telemetry_allowlist/metadata.yaml new file mode 100644 index 0000000000000..8f661489e2872 --- /dev/null +++ b/migrations/frontend/1680707560_sg_telemetry_allowlist/metadata.yaml @@ -0,0 +1,2 @@ +name: sg_telemetry_allowlist +parents: [1678899992, 1678994673] diff --git a/migrations/frontend/1680707560_sg_telemetry_allowlist/up.sql b/migrations/frontend/1680707560_sg_telemetry_allowlist/up.sql new file mode 100644 index 0000000000000..4ab8077e84f86 --- /dev/null +++ b/migrations/frontend/1680707560_sg_telemetry_allowlist/up.sql @@ -0,0 +1,2 @@ +-- This migration was generated by the command `sg telemetry add` +INSERT INTO event_logs_export_allowlist (event_name) VALUES (UNNEST('{AccessRequestsPageViewed,AccessRequestFailed,CreateAccessRequestSucceeded,AccessRequestRejected,AccessRequestApproved,SearchInputAdd,SearchInputGoto,SearchInputCommand}'::TEXT[])) ON CONFLICT DO NOTHING;