ActiveRecord::Base.connection.execute('REINDEX INDEX search_index;')
ActiveRecord::Base.connection.execute('REINDEX INDEX index_accounts_on_uri;')
ActiveRecord::Base.connection.execute('REINDEX INDEX index_accounts_on_url;')
ActiveRecord::Base.connection.execute('REINDEX INDEX index_accounts_on_domain_and_id;')ifActiveRecord::Migrator.current_version>=2023_05_24_190515
end
defdeduplicate_users!
@ -241,6 +246,8 @@ module Mastodon::CLI
else
ActiveRecord::Base.connection.add_index:users,['reset_password_token'],name:'index_users_on_reset_password_token',unique:true,where:'reset_password_token IS NOT NULL',opclass::text_pattern_ops
end
ActiveRecord::Base.connection.execute('REINDEX INDEX index_users_on_unconfirmed_email;')ifActiveRecord::Migrator.current_version>=2023_07_02_151753