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 :segment_id field to shared_links schema (#5924)
Artur Pata1ff2b52cbbcf
diff --git a/priv/repo/migrations/20251201154500_add_limited_to_segment_to_shared_links.exs b/priv/repo/migrations/20251201154500_add_limited_to_segment_to_shared_links.exsnew file mode 100644index 0000000000..f223735c74--- /dev/null+++ b/priv/repo/migrations/20251201154500_add_limited_to_segment_to_shared_links.exs@@ -0,0 +1,11 @@+defmodule Plausible.Repo.Migrations.AddLimitedToSegmentToSharedLinks do+ use Ecto.Migration++ def change do+ alter table(:shared_links) do+ add :segment_id, references(:segments, on_delete: :delete_all)+ end++ create index(:shared_links, [:segment_id])+ end+end