increase our own build-version if rebuild

This commit is contained in:
2021-11-27 01:28:42 +01:00
parent 1bff197ce9
commit be276f9ead
10 changed files with 350 additions and 30 deletions

View File

@@ -170,6 +170,20 @@ func (dpc *DbPackageCreate) SetNillableLto(d *dbpackage.Lto) *DbPackageCreate {
return dpc
}
// SetLastVersionBuild sets the "last_version_build" field.
func (dpc *DbPackageCreate) SetLastVersionBuild(s string) *DbPackageCreate {
dpc.mutation.SetLastVersionBuild(s)
return dpc
}
// SetNillableLastVersionBuild sets the "last_version_build" field if the given value is not nil.
func (dpc *DbPackageCreate) SetNillableLastVersionBuild(s *string) *DbPackageCreate {
if s != nil {
dpc.SetLastVersionBuild(*s)
}
return dpc
}
// Mutation returns the DbPackageMutation object of the builder.
func (dpc *DbPackageCreate) Mutation() *DbPackageMutation {
return dpc.mutation
@@ -418,6 +432,14 @@ func (dpc *DbPackageCreate) createSpec() (*DbPackage, *sqlgraph.CreateSpec) {
})
_node.Lto = value
}
if value, ok := dpc.mutation.LastVersionBuild(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeString,
Value: value,
Column: dbpackage.FieldLastVersionBuild,
})
_node.LastVersionBuild = value
}
return _node, _spec
}