Merge remote-tracking branch 'mkljczk-pleroma/akkoma-migration' into fork
This commit is contained in:
commit
d74b5800e7
1 changed files with 10 additions and 0 deletions
|
@ -7,6 +7,16 @@ defmodule Pleroma.Repo.Migrations.AddMastofeSettings do
|
||||||
def up, do: :ok
|
def up, do: :ok
|
||||||
|
|
||||||
def down do
|
def down do
|
||||||
|
"""
|
||||||
|
UPDATE users SET pleroma_settings_store = jsonb_set(
|
||||||
|
pleroma_settings_store,
|
||||||
|
'{glitch-lily}',
|
||||||
|
mastofe_settings
|
||||||
|
)
|
||||||
|
WHERE mastofe_settings IS NOT NULL;
|
||||||
|
"""
|
||||||
|
|> execute()
|
||||||
|
|
||||||
alter table(:users) do
|
alter table(:users) do
|
||||||
remove_if_exists(:mastofe_settings, :map)
|
remove_if_exists(:mastofe_settings, :map)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue