Ensure rollback succeeds

pull/219/head
FloatingGhost 2 weeks ago
parent 4e01e1bf72
commit ee2eb7752d
  1. 8
      priv/repo/migrations/20220916115149_ensure_mastofe_settings.exs

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

Loading…
Cancel
Save