diff options
author | ThibG <thib@sitedethib.com> | 2020-12-05 22:03:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-05 22:03:28 +0100 |
commit | 25f725d67a6d2542cd586ab7c56baca572eb4f88 (patch) | |
tree | 4272423a87ddacaf63efc0ee6cd8df4a63e61419 /lib/tasks | |
parent | 13df125b6c75923ccc21a5c57053e680cea75f38 (diff) | |
parent | 40e2de3904c553f3fe4ec30cdbe3ae0e89796291 (diff) |
Merge pull request #1470 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/db.rake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index 199155107..f6c9c7eec 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -51,8 +51,11 @@ namespace :db do task :post_migration_hook do at_exit do unless %w(C POSIX).include?(ActiveRecord::Base.connection.execute('SELECT datcollate FROM pg_database WHERE datname = current_database();').first['datcollate']) - Rails.logger.warn 'WARNING: Your database is using an unsafe collation setting, which might result in index corruption.' - Rails.logger.warn 'WARNING: See https://docs.joinmastodon.org/admin/troubleshooting/index-corruption/#am-i-affected' + warn <<~WARNING + Your database collation is susceptible to index corruption. + (This warning does not indicate that index corruption has occured and can be ignored) + (To learn more, visit: https://docs.joinmastodon.org/admin/troubleshooting/index-corruption/) + WARNING end end end |