Explorar el Código

Apply 1 suggestion(s) to 1 file(s)

merge-requests/3010/head
Maksim hace 3 años
padre
commit
c74fad9e06
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      priv/repo/migrations/20200914105638_delete_notification_without_activity.exs

+ 1
- 1
priv/repo/migrations/20200914105638_delete_notification_without_activity.exs Ver fichero

@@ -11,7 +11,7 @@ defmodule Pleroma.Repo.Migrations.DeleteNotificationWithoutActivity do
select: %{id: type(q.id, :integer)},
where: is_nil(c.id)
)
|> Repo.chunk_stream(1_000, :bacthes)
|> Repo.chunk_stream(1_000, :batches)
|> Stream.each(fn records ->
notification_ids = Enum.map(records, fn %{id: id} -> id end)



Cargando…
Cancelar
Guardar