Add migration to fix spc users.
authorlain <lain@soykaf.club>
Fri, 18 Jan 2019 18:35:47 +0000 (19:35 +0100)
committerlain <lain@soykaf.club>
Fri, 18 Jan 2019 18:35:47 +0000 (19:35 +0100)
lib/pleroma/spc_fixes/spc_fixes.ex
priv/repo/migrations/20190118183318_fix_spc_users.exs [new file with mode: 0644]

index aa4830b518c93311eb34f354d37482a2a4cbf151..e937d58714cf3fb0b89ca130888d6076e03aeb98 100644 (file)
@@ -4,7 +4,6 @@
 
 alias Pleroma.Repo
 alias Pleroma.User
-# alias Pleroma.Web.ActivityPub.Transmogrifier
 import Ecto.Query
 
 defmodule Pleroma.SpcFixes do
diff --git a/priv/repo/migrations/20190118183318_fix_spc_users.exs b/priv/repo/migrations/20190118183318_fix_spc_users.exs
new file mode 100644 (file)
index 0000000..3a6caa8
--- /dev/null
@@ -0,0 +1,10 @@
+defmodule Pleroma.Repo.Migrations.FixSPCUsers do
+  use Ecto.Migration
+
+  def up do
+    Pleroma.SpcFixes.upgrade_users()
+  end
+
+  def down do
+  end
+end