From 41671bbeb49cda3cb95996025171b8ae8ebd3d53 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Tue, 14 Mar 2023 20:35:25 +0900 Subject: [PATCH] Revert "test: use = instead of IN" This reverts commit 72e00b0fab488aa0b03d0661f1c1510b3dfde7d7. --- models/migrations/v1_20/v246.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/migrations/v1_20/v246.go b/models/migrations/v1_20/v246.go index a6dd4a6cf88d2..8395e7bca8ee9 100644 --- a/models/migrations/v1_20/v246.go +++ b/models/migrations/v1_20/v246.go @@ -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, })