Migration: Enum.chunk is deprecated.
authorlain <lain@soykaf.club>
Mon, 11 May 2020 20:00:01 +0000 (22:00 +0200)
committerlain <lain@soykaf.club>
Mon, 11 May 2020 20:00:01 +0000 (22:00 +0200)
priv/repo/migrations/20200415181818_update_markers.exs

index b7c611333020ba13a06624524e1bda7b37048c70..d85bd04e068e6b183a00b7fb652fa174512cfec8 100644 (file)
@@ -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]},