diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-14 08:33:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 08:33:48 +0100 |
commit | 457c37e47ae51e09dfbfe687616415b3c8be13af (patch) | |
tree | b091f572394f945e2e38cfd42f83a22737e81a5f | |
parent | 1e83092e47fff6fa28aafbb0e1d7fc3bd69b3087 (diff) |
Fix index name in fix-duplicates task (#20632)
-rw-r--r-- | lib/mastodon/maintenance_cli.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mastodon/maintenance_cli.rb b/lib/mastodon/maintenance_cli.rb index 0b5049c14..85937da81 100644 --- a/lib/mastodon/maintenance_cli.rb +++ b/lib/mastodon/maintenance_cli.rb @@ -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| |