Ensure rollback succeeds

This commit is contained in:
FloatingGhost 2022-09-16 13:00:40 +01:00
parent 4e01e1bf72
commit ee2eb7752d

View file

@ -1,9 +1,15 @@
defmodule Pleroma.Repo.Migrations.EnsureMastofeSettings do defmodule Pleroma.Repo.Migrations.EnsureMastofeSettings do
use Ecto.Migration use Ecto.Migration
def change do def up do
alter table(:users) do alter table(:users) do
add_if_not_exists(:mastofe_settings, :map) add_if_not_exists(:mastofe_settings, :map)
end end
end end
def down do
alter table(:users) do
remove_if_exists(:mastofe_settings, :map)
end
end
end end