Migration: Enum.chunk is deprecated.

This commit is contained in:
lain 2020-05-11 22:00:01 +02:00
parent d8dd945a03
commit f71376e30e

View File

@ -33,7 +33,7 @@ defmodule Pleroma.Repo.Migrations.UpdateMarkers do
end) end)
markers_attrs markers_attrs
|> Enum.chunk(1000) |> Enum.chunk_every(1000)
|> Enum.each(fn marker_attrs -> |> Enum.each(fn marker_attrs ->
Repo.insert_all("markers", markers_attrs, Repo.insert_all("markers", markers_attrs,
on_conflict: {:replace, [:last_read_id]}, on_conflict: {:replace, [:last_read_id]},