Commit 67143e25 authored by Yorick Peterse's avatar Yorick Peterse Committed by Robert Speicher

More detailed trigram migration error message

This explains the user what they need to run and where to go in case
they want to learn more about "CREATE EXTENSION".
parent 4f3fa519
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment