diff options
author | zeripath <art27@cantab.net> | 2021-03-22 18:26:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 19:26:38 +0100 |
commit | dfb3e50dcea581b256d0fdf141d0c8fa8d75d78d (patch) | |
tree | 451812ed412b3edcfa305c7e2c8b341eeba55180 /models/migrations/v176.go | |
parent | 5f038cd7febd834c9b86b9e734848870efbdce86 (diff) | |
download | gitea-dfb3e50dcea581b256d0fdf141d0c8fa8d75d78d.tar.gz gitea-dfb3e50dcea581b256d0fdf141d0c8fa8d75d78d.zip |
Fix the v176 migration (#15110)
There is a serious issue with the v176 migration where there is a mistaken missing
label_id selection.
*introduced by #14912*
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'models/migrations/v176.go')
-rw-r--r-- | models/migrations/v176.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/v176.go b/models/migrations/v176.go index ff6587508d..0365ae5673 100644 --- a/models/migrations/v176.go +++ b/models/migrations/v176.go @@ -48,7 +48,7 @@ func removeInvalidLabels(x *xorm.Engine) error { SELECT il_too.id FROM ( SELECT il_too_too.id FROM issue_label AS il_too_too - INNER JOIN label ON il_too_too.id = label.id + INNER JOIN label ON il_too_too.label_id = label.id INNER JOIN issue on issue.id = il_too_too.issue_id INNER JOIN repository on repository.id = issue.repo_id WHERE |