mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 06:03:51 +03:00
fix: dbconsistency check adding missing quotes
On postgres the new check for orphaned authorization tokens fails with: - [E] Error: pq: syntax error at or near "." whilst counting Authorization token without existing User Adding marks to the user table reference allows the check to succeed
This commit is contained in:
parent
7c9214cb92
commit
2953080339
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ func checkDBConsistency(ctx context.Context, logger log.Logger, autofix bool) er
|
|||
"repo_archive_download_count", "release", "repo_archive_download_count.release_id=release.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 {
|
||||
|
|
Loading…
Reference in a new issue