Skip to content
Snippets Groups Projects
Unverified Commit 457c37e4 authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix index name in fix-duplicates task (#20632)

parent 1e83092e
No related branches found
No related tags found
No related merge requests found
......@@ -499,7 +499,7 @@ module Mastodon
def deduplicate_tags!
remove_index_if_exists!(:tags, 'index_tags_on_name_lower')
remove_index_if_exists!(:tags, 'index_tags_on_lower_btree')
remove_index_if_exists!(:tags, 'index_tags_on_name_lower_btree')
@prompt.say 'Deduplicating tags…'
ActiveRecord::Base.connection.select_all("SELECT string_agg(id::text, ',') AS ids FROM tags GROUP BY lower((name)::text) HAVING count(*) > 1").each do |row|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment