add migration (#5472)

This commit is contained in:
RobertJoonas 2025-06-05 13:49:03 +01:00 committed by GitHub
parent 0a2ed563dd
commit 0e9b354a45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
defmodule Plausible.Repo.Migrations.AddSharedLinksFeatureToEnterprisePlans do
use Ecto.Migration
def up do
execute """
UPDATE enterprise_plans
SET features = array_append(features, 'shared_links')
WHERE NOT ('shared_links' = ANY(features));
"""
end
def down do
raise "irreversible"
end
end