Merge pull request #5332 from concourse/fix-needs-v6-migration
Created builds should not need v6 migration
This commit is contained in:
commit
3e7db0548b
|
@ -1527,8 +1527,16 @@ func (b *build) saveEvent(tx Tx, event atc.Event) error {
|
|||
|
||||
func createBuild(tx Tx, build *build, vals map[string]interface{}) error {
|
||||
var buildID int
|
||||
|
||||
buildVals := make(map[string]interface{})
|
||||
for name, value := range vals {
|
||||
buildVals[name] = value
|
||||
}
|
||||
|
||||
buildVals["needs_v6_migration"] = false
|
||||
|
||||
err := psql.Insert("builds").
|
||||
SetMap(vals).
|
||||
SetMap(buildVals).
|
||||
Suffix("RETURNING id").
|
||||
RunWith(tx).
|
||||
QueryRow().
|
||||
|
|
Loading…
Reference in New Issue