This is an automated email from the ASF dual-hosted git repository.
zky pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new b040bb2d7 fix: pg ci (#6252)
b040bb2d7 is described below
commit b040bb2d7511fa88e217b3a7716bb21162a4d199
Author: Klesh Wong <[email protected]>
AuthorDate: Mon Oct 16 18:15:59 2023 +0800
fix: pg ci (#6252)
---
backend/core/models/migrationscripts/20230829_normalize_bp_settings.go | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/backend/core/models/migrationscripts/20230829_normalize_bp_settings.go
b/backend/core/models/migrationscripts/20230829_normalize_bp_settings.go
index 5878af126..99dd3b07a 100644
--- a/backend/core/models/migrationscripts/20230829_normalize_bp_settings.go
+++ b/backend/core/models/migrationscripts/20230829_normalize_bp_settings.go
@@ -74,8 +74,7 @@ func (script *normalizeBpSettings) Up(basicRes
context.BasicRes) errors.Error {
}
db := basicRes.GetDal()
bp := &blueprint20230829{}
- _ = db.First(bp)
- cursor := errors.Must1(db.Cursor(dal.From("_devlake_blueprints"),
dal.Where("mode = ?", "NORMAL")))
+ cursor := errors.Must1(db.Cursor(dal.From(bp)))
defer cursor.Close()
for cursor.Next() {