projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into issue/1936
[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 d85bd04e068e6b183a00b7fb652fa174512cfec8..bb9d8e860192d4057880dd607d013d014ce3180c 100644
(file)
--- a/
priv/repo/migrations/20200415181818_update_markers.exs
+++ b/
priv/repo/migrations/20200415181818_update_markers.exs
@@
-34,8
+34,8
@@
defmodule Pleroma.Repo.Migrations.UpdateMarkers do
markers_attrs
|> Enum.chunk_every(1000)
markers_attrs
|> Enum.chunk_every(1000)
- |> Enum.each(fn marker
_attrs
->
- Repo.insert_all("markers", markers_attrs,
+ |> 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]
)