Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Add `conversation_id` column and make `customer_id` nullable in mappings table (#6061)
Adrian Gruntkowskieedb3398f1ca
diff --git a/priv/repo/migrations/20260210140447_add_conversation_id_to_helpscout_mappings.exs b/priv/repo/migrations/20260210140447_add_conversation_id_to_helpscout_mappings.exsnew file mode 100644index 0000000000..88aef68bf3--- /dev/null+++ b/priv/repo/migrations/20260210140447_add_conversation_id_to_helpscout_mappings.exs@@ -0,0 +1,17 @@+defmodule Plausible.Repo.Migrations.AddConversationIdToHelpscoutMappings do+ use Plausible+ use Ecto.Migration++ import Plausible.MigrationUtils++ def change do+ if enterprise_edition?() do+ alter table(:help_scout_mappings) do+ add :conversation_id, :string, null: true+ modify :customer_id, :string, null: true, from: {:string, null: false}+ end++ create unique_index(:help_scout_mappings, [:conversation_id])+ end+ end+end