Merge pull request #5332 from concourse/fix-needs-v6-migration

Created builds should not need v6 migration
This commit is contained in:
Alex Suraci 2020-03-19 17:50:20 -04:00 committed by GitHub
commit 3e7db0548b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -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().