add migration (#5472)
This commit is contained in:
parent
0a2ed563dd
commit
0e9b354a45
|
|
@ -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
|
||||
Loading…
Reference in New Issue