aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2021-12-29 15:56:46 -0600
committerAlex Gleason <alex@alexgleason.me>2021-12-29 15:56:46 -0600
commit0af8adb265faa8ff123e663608675540d1f0e326 (patch)
treed4baad4c48d3942bb690117ecfea976be6899173
parent99c55c97bf3eaa3f2b7206cb6a398938e55fc3d1 (diff)
downloadpleroma-0af8adb265faa8ff123e663608675540d1f0e326.tar.gz
HashtagsTableMigrator: fix on_conflict
-rw-r--r--lib/pleroma/migrators/hashtags_table_migrator.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/migrators/hashtags_table_migrator.ex b/lib/pleroma/migrators/hashtags_table_migrator.ex
index 31a5a44c7..b5add9659 100644
--- a/lib/pleroma/migrators/hashtags_table_migrator.ex
+++ b/lib/pleroma/migrators/hashtags_table_migrator.ex
@@ -58,7 +58,7 @@ defmodule Pleroma.Migrators.HashtagsTableMigrator do
data_migration_id: data_migration_id,
record_id: failed_id
}
- |> Repo.insert()
+ |> Repo.insert(on_conflict: :nothing)
end
record_ids = object_ids -- failed_ids