Skip to content

Commit

Permalink
fix: pg ci
Browse files Browse the repository at this point in the history
  • Loading branch information
klesh committed Oct 16, 2023
1 parent ad8e21d commit d0fe136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +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")))
defer cursor.Close()

Expand Down
2 changes: 1 addition & 1 deletion backend/helpers/migrationhelper/migrationhelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func AutoMigrateTables(basicRes context.BasicRes, dst ...interface{}) errors.Err
if err != nil {
return err
}
_ = db.All(entity)
_ = db.First(entity)
}
return nil
}
Expand Down

0 comments on commit d0fe136

Please sign in to comment.