mirror of https://github.com/go-gitea/gitea.git
Backport #15110 There is a serious issue with the v176 migration where there is a mistaken missing label_id selection. Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
5519e26c2f
commit
14011d77c9
|
@ -380,7 +380,7 @@ func FixIssueLabelWithOutsideLabels() (int64, error) {
|
||||||
SELECT il_too.id FROM (
|
SELECT il_too.id FROM (
|
||||||
SELECT il_too_too.id
|
SELECT il_too_too.id
|
||||||
FROM issue_label AS il_too_too
|
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 issue on issue.id = il_too_too.issue_id
|
||||||
INNER JOIN repository on repository.id = issue.repo_id
|
INNER JOIN repository on repository.id = issue.repo_id
|
||||||
WHERE
|
WHERE
|
||||||
|
|
|
@ -48,7 +48,7 @@ func removeInvalidLabels(x *xorm.Engine) error {
|
||||||
SELECT il_too.id FROM (
|
SELECT il_too.id FROM (
|
||||||
SELECT il_too_too.id
|
SELECT il_too_too.id
|
||||||
FROM issue_label AS il_too_too
|
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 issue on issue.id = il_too_too.issue_id
|
||||||
INNER JOIN repository on repository.id = issue.repo_id
|
INNER JOIN repository on repository.id = issue.repo_id
|
||||||
WHERE
|
WHERE
|
||||||
|
|
|
@ -330,7 +330,7 @@ func TransferOwnership(doer *User, newOwnerName string, repo *Repository) (err e
|
||||||
SELECT il_too.id FROM (
|
SELECT il_too.id FROM (
|
||||||
SELECT il_too_too.id
|
SELECT il_too_too.id
|
||||||
FROM issue_label AS il_too_too
|
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 issue on issue.id = il_too_too.issue_id
|
||||||
WHERE
|
WHERE
|
||||||
issue.repo_id = ? AND (issue.repo_id != label.repo_id OR (label.repo_id = 0 AND label.org_id != ?))
|
issue.repo_id = ? AND (issue.repo_id != label.repo_id OR (label.repo_id = 0 AND label.org_id != ?))
|
||||||
|
|
Loading…
Reference in New Issue