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

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 219c13249605
......@@ -5,7 +5,10 @@ def up
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 ' \
# 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