projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Merge branch 'revert-2b5d9eb1' into 'develop'"
[akkoma]
/
priv
/
repo
/
migrations
/
20200415181818_update_markers.exs
diff --git
a/priv/repo/migrations/20200415181818_update_markers.exs
b/priv/repo/migrations/20200415181818_update_markers.exs
index b7c611333020ba13a06624524e1bda7b37048c70..bb9d8e860192d4057880dd607d013d014ce3180c 100644
(file)
--- a/
priv/repo/migrations/20200415181818_update_markers.exs
+++ b/
priv/repo/migrations/20200415181818_update_markers.exs
@@
-33,9
+33,9
@@
defmodule Pleroma.Repo.Migrations.UpdateMarkers do
end)
markers_attrs
end)
markers_attrs
- |> Enum.chunk(1000)
- |> Enum.each(fn marker
_attrs
->
- Repo.insert_all("markers", markers_attrs,
+ |> Enum.chunk
_every
(1000)
+ |> Enum.each(fn marker
s_attrs_chunked
->
+ Repo.insert_all("markers", markers_attrs
_chunked
,
on_conflict: {:replace, [:last_read_id]},
conflict_target: [:user_id, :timeline]
)
on_conflict: {:replace, [:last_read_id]},
conflict_target: [:user_id, :timeline]
)