forked from mirrors/akkoma
Migration: Enum.chunk is deprecated.
This commit is contained in:
parent
d8dd945a03
commit
f71376e30e
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ defmodule Pleroma.Repo.Migrations.UpdateMarkers do
|
|||
end)
|
||||
|
||||
markers_attrs
|
||||
|> Enum.chunk(1000)
|
||||
|> Enum.chunk_every(1000)
|
||||
|> Enum.each(fn marker_attrs ->
|
||||
Repo.insert_all("markers", markers_attrs,
|
||||
on_conflict: {:replace, [:last_read_id]},
|
||||
|
|
Loading…
Reference in a new issue