diff options
author | silentcodeg <105681448+silentcodeg@users.noreply.github.com> | 2022-05-20 09:36:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-20 15:36:34 +0800 |
commit | 63f6e6c0bd6a5314b76b7598dee77ceee1dde81a (patch) | |
tree | 365ed53958d31bd08e5ef46a1842457a8c67c4e8 /modules/doctor | |
parent | 2c66bd8afd7f6114f3d0febe04c80e6bcf70c558 (diff) | |
download | gitea-63f6e6c0bd6a5314b76b7598dee77ceee1dde81a.tar.gz gitea-63f6e6c0bd6a5314b76b7598dee77ceee1dde81a.zip |
[doctor] pq: syntax error at or near "." quote user table name (#19765)
Diffstat (limited to 'modules/doctor')
-rw-r--r-- | modules/doctor/dbconsistency.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/doctor/dbconsistency.go b/modules/doctor/dbconsistency.go index 03426d8247..18cb2cdac6 100644 --- a/modules/doctor/dbconsistency.go +++ b/modules/doctor/dbconsistency.go @@ -191,10 +191,10 @@ func checkDBConsistency(ctx context.Context, logger log.Logger, autofix bool) er "action", "repository", "action.repo_id=repository.id"), // find OAuth2Grant without existing user genericOrphanCheck("Orphaned OAuth2Grant without existing User", - "oauth2_grant", "user", "oauth2_grant.user_id=user.id"), + "oauth2_grant", "user", "oauth2_grant.user_id=`user`.id"), // find OAuth2Application without existing user genericOrphanCheck("Orphaned OAuth2Application without existing User", - "oauth2_application", "user", "oauth2_application.uid=user.id"), + "oauth2_application", "user", "oauth2_application.uid=`user`.id"), // find OAuth2AuthorizationCode without existing OAuth2Grant genericOrphanCheck("Orphaned OAuth2AuthorizationCode without existing OAuth2Grant", "oauth2_authorization_code", "oauth2_grant", "oauth2_authorization_code.grant_id=oauth2_grant.id"), |