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

Change index corruption warning to be a little less scary (#17395)

parent a99adeaa
No related branches found
No related tags found
No related merge requests found
......@@ -21,8 +21,8 @@ namespace :db do
at_exit do
unless %w(C POSIX).include?(ActiveRecord::Base.connection.select_one('SELECT datcollate FROM pg_database WHERE datname = current_database();')['datcollate'])
warn <<~WARNING
Your database collation is susceptible to index corruption.
(This warning does not indicate that index corruption has occurred and can be ignored)
Your database collation may be susceptible to index corruption.
(This warning does not indicate that index corruption has occurred, and it can be ignored if you've previously checked for index corruption)
(To learn more, visit: https://docs.joinmastodon.org/admin/troubleshooting/index-corruption/)
WARNING
end
......
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