Skip to content

Commit

Permalink
Revert "test: use = instead of IN"
Browse files Browse the repository at this point in the history
This reverts commit 72e00b0.
  • Loading branch information
yp05327 committed Mar 14, 2023
1 parent 72e00b0 commit 41671bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/migrations/v1_20/v246.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func FixIncorrectProjectType(x *xorm.Engine) error {
}

count, err := sess.Table("project").
Where("type = ? AND owner_id = (SELECT id FROM user WHERE type = ?)", TypeOrganization, UserTypeIndividual).
Where("type = ? AND owner_id IN (SELECT id FROM user WHERE type = ?)", TypeOrganization, UserTypeIndividual).
Update(&Project{
Type: TypeIndividual,
})
Expand Down

0 comments on commit 41671bb

Please sign in to comment.