summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-03-10 14:49:15 +0100
committerRobert Speicher <rspeicher@gmail.com>2016-03-11 15:26:32 -0500
commit67143e25a2395c743e0537e7f40b893a65912b7d (patch)
tree188db99370da84e7d877cfb7feace1db8b9133c7 /db/migrate
parent4f3fa519c627b7caf45273226ae438181dfbc392 (diff)
downloadgitlab-ce-67143e25a2395c743e0537e7f40b893a65912b7d.tar.gz
More detailed trigram migration error messagetrigram-index-searching
This explains the user what they need to run and where to go in case they want to learn more about "CREATE EXTENSION".
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20160226114608_add_trigram_indexes_for_searching.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/db/migrate/20160226114608_add_trigram_indexes_for_searching.rb b/db/migrate/20160226114608_add_trigram_indexes_for_searching.rb
index fca5ac01a08..003169c13c6 100644
--- a/db/migrate/20160226114608_add_trigram_indexes_for_searching.rb
+++ b/db/migrate/20160226114608_add_trigram_indexes_for_searching.rb
@@ -5,7 +5,10 @@ class AddTrigramIndexesForSearching < ActiveRecord::Migration
return unless Gitlab::Database.postgresql?
unless trigrams_enabled?
- raise 'You must enable the pg_trgm extension as a PostgreSQL super user'
+ raise 'You must enable the pg_trgm extension. You can do so by running ' \
+ '"CREATE EXTENSION pg_trgm;" as a PostgreSQL super user, this must be ' \
+ 'done for every GitLab database. For more information see ' \
+ 'http://www.postgresql.org/docs/current/static/sql-createextension.html'
end
# trigram indexes are case-insensitive so we can just index the column