From: lain Date: Mon, 11 May 2020 20:00:01 +0000 (+0200) Subject: Migration: Enum.chunk is deprecated. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=f71376e30ed34b1fa8a7997dd6f1ea0ae76ed5dd;p=akkoma Migration: Enum.chunk is deprecated. --- diff --git a/priv/repo/migrations/20200415181818_update_markers.exs b/priv/repo/migrations/20200415181818_update_markers.exs index b7c611333..d85bd04e0 100644 --- a/priv/repo/migrations/20200415181818_update_markers.exs +++ b/priv/repo/migrations/20200415181818_update_markers.exs @@ -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]},