From 412bf1959eebfb274b9240cc4f7aa5b8e485f045 Mon Sep 17 00:00:00 2001 From: RobertJoonas <56999674+RobertJoonas@users.noreply.github.com> Date: Wed, 10 May 2023 09:55:30 +0300 Subject: [PATCH] Postgres migration to add `allowed_event_props` field to `site` (#2894) * add migration * add not null constraint * remove not null constraint and default value --- .../20230503094245_add_event_prop_allowlist_to_site.exs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 priv/repo/migrations/20230503094245_add_event_prop_allowlist_to_site.exs diff --git a/priv/repo/migrations/20230503094245_add_event_prop_allowlist_to_site.exs b/priv/repo/migrations/20230503094245_add_event_prop_allowlist_to_site.exs new file mode 100644 index 0000000000..5e122511a9 --- /dev/null +++ b/priv/repo/migrations/20230503094245_add_event_prop_allowlist_to_site.exs @@ -0,0 +1,9 @@ +defmodule Plausible.Repo.Migrations.AddEventPropAllowlistToSite do + use Ecto.Migration + + def change do + alter table("sites") do + add :allowed_event_props, {:array, :string} + end + end +end