X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20170719152213_add_follower_address_to_user.exs;h=4d163ce0b8e920d62fb384cd566eb800d6a67a0f;hb=7701a4c84191a445e0b62e8a241e8af86f86e16a;hp=bd3c93bd5105511b215cc383f4df4eb4a929056b;hpb=396c32a6da5d028675b2d3c4154ac9045596ad31;p=akkoma diff --git a/priv/repo/migrations/20170719152213_add_follower_address_to_user.exs b/priv/repo/migrations/20170719152213_add_follower_address_to_user.exs index bd3c93bd5..4d163ce0b 100644 --- a/priv/repo/migrations/20170719152213_add_follower_address_to_user.exs +++ b/priv/repo/migrations/20170719152213_add_follower_address_to_user.exs @@ -8,21 +8,23 @@ defmodule Pleroma.Repo.Migrations.AddFollowerAddressToUser do alter table(:users) do add :follower_address, :string, unique: true end - 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) + # Not needed anymore for new setups. + # flush() - 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) + # 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