Merge pull request 'fix: dbconsistency check adding missing quotes' (#6124) from 71rd/forgejo:dbconsistency-forgejo into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6124
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
(cherry picked from commit b525eec82b)
This commit is contained in:
Gusted 2024-12-03 04:05:20 +00:00 committed by forgejo-backport-action
parent f93a7a93a3
commit 2580cece8e

View file

@ -229,7 +229,7 @@ func checkDBConsistency(ctx context.Context, logger log.Logger, autofix bool) er
"user_redirect", "user", "user_redirect.redirect_user_id=`user`.id"), "user_redirect", "user", "user_redirect.redirect_user_id=`user`.id"),
// find authorization tokens without existing user // find authorization tokens without existing user
genericOrphanCheck("Authorization token without existing User", genericOrphanCheck("Authorization token without existing User",
"forgejo_auth_token", "user", "forgejo_auth_token.uid=user.id"), "forgejo_auth_token", "user", "forgejo_auth_token.uid=`user`.id"),
) )
for _, c := range consistencyChecks { for _, c := range consistencyChecks {