]> cat aescling's git repositories - mastodon.git/commitdiff
Do not suggest to login into the GitLab database (#13084)
authorMarcin Cieślak <saper@saper.info>
Sat, 15 Feb 2020 11:52:57 +0000 (12:52 +0100)
committerGitHub <noreply@github.com>
Sat, 15 Feb 2020 11:52:57 +0000 (12:52 +0100)
As pointed out on Discourse:

https://discourse.joinmastodon.org/t/obscure-wtf-error-message-running-migrations-for-3-1/2524

The message the administrators were getting was telling them
to log in to the "GitLab database" and also mentions MySQL

lib/mastodon/migration_helpers.rb

index 146eba8ec66e19af0e301de5e6ca2a0265954f7d..bf2314ecb1e209bbd64086d7deb444235120606c 100644 (file)
@@ -886,16 +886,12 @@ module Mastodon
 Your database user is not allowed to create, drop, or execute triggers on the
 table #{table}.
 
-If you are using PostgreSQL you can solve this by logging in to the GitLab
+If you are using PostgreSQL you can solve this by logging in to the Mastodon
 database (#{dbname}) using a super user and running:
 
     ALTER USER #{user} WITH SUPERUSER
 
-For MySQL you instead need to run:
-
-    GRANT ALL PRIVILEGES ON *.* TO #{user}@'%'
-
-Both queries will grant the user super user permissions, ensuring you don't run
+The query will grant the user super user permissions, ensuring you don't run
 into similar problems in the future (e.g. when new tables are created).
         EOF
       end
This page took 0.029965 seconds and 3 git commands to generate.