Ensure rollback succeeds
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Fri, 16 Sep 2022 12:00:40 +0000 (13:00 +0100)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Fri, 16 Sep 2022 12:00:40 +0000 (13:00 +0100)
priv/repo/migrations/20220916115149_ensure_mastofe_settings.exs

index 37880ff993e0ad1734dc98a5fea89e75ef1af0b8..1d0a6e0507bf497c28ecd25c872bf791b28ef74b 100644 (file)
@@ -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