projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Apply 4 suggestion(s) to 2 file(s)
[akkoma]
/
priv
/
repo
/
migrations
/
20200802170532_fix_legacy_tags.exs
diff --git
a/priv/repo/migrations/20200802170532_fix_legacy_tags.exs
b/priv/repo/migrations/20200802170532_fix_legacy_tags.exs
index a84b5d0f63793b9e5967c55318d0a026a7bfe6c1..ca82fac4299ce8e05817bffe61f353a4d28c0a35 100644
(file)
--- a/
priv/repo/migrations/20200802170532_fix_legacy_tags.exs
+++ b/
priv/repo/migrations/20200802170532_fix_legacy_tags.exs
@@
-22,7
+22,7
@@
defmodule Pleroma.Repo.Migrations.FixLegacyTags do
where: fragment("? && ?", u.tags, ^legacy_tags),
select: struct(u, [:tags, :id])
)
- |> Repo.
all(
)
+ |> Repo.
chunk_stream(100
)
|> Enum.each(fn user ->
fix_tags_changeset(user)
|> Repo.update()