Remove unused imports and aliases from migration
authorSergey Suprunenko <suprunenko.s@gmail.com>
Mon, 10 Jun 2019 13:20:37 +0000 (13:20 +0000)
committerlain <lain@soykaf.club>
Mon, 10 Jun 2019 13:20:37 +0000 (13:20 +0000)
priv/repo/migrations/20170719152213_add_follower_address_to_user.exs

index 4d163ce0b8e920d62fb384cd566eb800d6a67a0f..591164be5ed6b6dbac680a8c94c0615d4bdffe35 100644 (file)
@@ -1,30 +1,10 @@
 defmodule Pleroma.Repo.Migrations.AddFollowerAddressToUser do
   use Ecto.Migration
-  import Ecto.Query
-  import Supervisor.Spec
-  alias Pleroma.{Repo, User}
 
   def up do
     alter table(:users) do
       add :follower_address, :string, unique: true
     end
-
-    # Not needed anymore for new setups.
-    # flush()
-
-    # children = [
-    #   # Start the endpoint when the application starts
-    #   supervisor(Pleroma.Web.Endpoint, [])
-    # ]
-    # opts = [strategy: :one_for_one, name: Pleroma.Supervisor]
-    # Supervisor.start_link(children, opts)
-
-    # Enum.each(Repo.all(User), fn (user) ->
-    #   if !user.follower_address do
-    #     cs = Ecto.Changeset.change(user, %{follower_address: User.ap_followers(user)})
-    #     Repo.update!(cs)
-    #   end
-    # end)
   end
 
   def down do