From 2580cece8e33f19e570017ecddbceb4ea9b33f5b Mon Sep 17 00:00:00 2001 From: Gusted Date: Tue, 3 Dec 2024 04:05:20 +0000 Subject: [PATCH] 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 (cherry picked from commit b525eec82b22fe36680b552715098671664ba19d) --- services/doctor/dbconsistency.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/doctor/dbconsistency.go b/services/doctor/dbconsistency.go index c137e4ca27..afe779d1d0 100644 --- a/services/doctor/dbconsistency.go +++ b/services/doctor/dbconsistency.go @@ -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"), // find authorization tokens 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 {