Add migration adding `teams.policy` to CE (#5868)

This commit is contained in:
Adrian Gruntkowski 2025-11-04 17:09:50 +01:00 committed by GitHub
parent d0ba8f7bd0
commit 592dc8ed97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
defmodule Plausible.Repo.Migrations.AddTeamsPolicyToCe do
use Ecto.Migration
import Plausible.MigrationUtils
def change do
if community_edition?() do
alter table(:teams) do
add :policy, :jsonb, null: false, default: "{}"
end
end
end
end