Postgres migration to add allowed_event_props field to site (#2894)

* add migration

* add not null constraint

* remove not null constraint and default value
This commit is contained in:
RobertJoonas 2023-05-10 09:55:30 +03:00 committed by GitHub
parent d161c1be0b
commit 412bf1959e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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