projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8dd945
)
Migration: Enum.chunk is deprecated.
author
lain
<lain@soykaf.club>
Mon, 11 May 2020 20:00:01 +0000
(22:00 +0200)
committer
lain
<lain@soykaf.club>
Mon, 11 May 2020 20:00:01 +0000
(22:00 +0200)
priv/repo/migrations/20200415181818_update_markers.exs
patch
|
blob
|
history
diff --git
a/priv/repo/migrations/20200415181818_update_markers.exs
b/priv/repo/migrations/20200415181818_update_markers.exs
index b7c611333020ba13a06624524e1bda7b37048c70..d85bd04e068e6b183a00b7fb652fa174512cfec8 100644
(file)
--- 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]},