628c55cd84
followers Signed-off-by: Thomas Citharel <tcit@tcit.fr>
16 lines
488 B
Elixir
16 lines
488 B
Elixir
defmodule Mobilizon.Storage.Repo.Migrations.RepairRelayAndAnonymousActors do
|
|
use Ecto.Migration
|
|
|
|
def up do
|
|
Ecto.Adapters.SQL.query!(
|
|
Mobilizon.Storage.Repo,
|
|
"UPDATE actors SET manually_approves_followers = true WHERE preferred_username = 'relay' and domain is null"
|
|
)
|
|
|
|
Ecto.Adapters.SQL.query!(
|
|
Mobilizon.Storage.Repo,
|
|
"UPDATE actors SET manually_approves_followers = true WHERE preferred_username = 'anonymous' and domain is null"
|
|
)
|
|
end
|
|
end
|