Backtick table name in generic orphan check (#20019)
This commit is contained in:
parent
e4ceaf65fb
commit
909fb6ad20
1 changed files with 2 additions and 2 deletions
|
@ -201,10 +201,10 @@ func checkDBConsistency(ctx context.Context, logger log.Logger, autofix bool) er
|
||||||
"oauth2_authorization_code", "oauth2_grant", "oauth2_authorization_code.grant_id=oauth2_grant.id"),
|
"oauth2_authorization_code", "oauth2_grant", "oauth2_authorization_code.grant_id=oauth2_grant.id"),
|
||||||
// find stopwatches without existing user
|
// find stopwatches without existing user
|
||||||
genericOrphanCheck("Orphaned Stopwatches without existing User",
|
genericOrphanCheck("Orphaned Stopwatches without existing User",
|
||||||
"stopwatch", "user", "stopwatch.user_id=user.id"),
|
"stopwatch", "user", "stopwatch.user_id=`user`.id"),
|
||||||
// find stopwatches without existing issue
|
// find stopwatches without existing issue
|
||||||
genericOrphanCheck("Orphaned Stopwatches without existing Issue",
|
genericOrphanCheck("Orphaned Stopwatches without existing Issue",
|
||||||
"stopwatch", "issue", "stopwatch.issue_id=issue.id"),
|
"stopwatch", "issue", "stopwatch.issue_id=`issue`.id"),
|
||||||
)
|
)
|
||||||
|
|
||||||
for _, c := range consistencyChecks {
|
for _, c := range consistencyChecks {
|
||||||
|
|
Reference in a new issue