Skip to content

Commit

Permalink
test: use = instead of IN
Browse files Browse the repository at this point in the history
  • Loading branch information
yp05327 committed Mar 14, 2023
1 parent 3bcc288 commit 72e00b0
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 IN (SELECT id FROM user WHERE type = ?)", TypeOrganization, UserTypeIndividual).
Where("type = ? AND owner_id = (SELECT id FROM user WHERE type = ?)", TypeOrganization, UserTypeIndividual).
Update(&Project{
Type: TypeIndividual,
})
Expand Down

0 comments on commit 72e00b0

Please sign in to comment.