forked from ALHP/ALHP.GO
prepare for better stats
This commit is contained in:
@@ -60,12 +60,6 @@ func (dpu *DbPackageUpdate) AddStatus(i int) *DbPackageUpdate {
|
||||
return dpu
|
||||
}
|
||||
|
||||
// ClearStatus clears the value of the "status" field.
|
||||
func (dpu *DbPackageUpdate) ClearStatus() *DbPackageUpdate {
|
||||
dpu.mutation.ClearStatus()
|
||||
return dpu
|
||||
}
|
||||
|
||||
// SetSkipReason sets the "skip_reason" field.
|
||||
func (dpu *DbPackageUpdate) SetSkipReason(s string) *DbPackageUpdate {
|
||||
dpu.mutation.SetSkipReason(s)
|
||||
@@ -337,12 +331,6 @@ func (dpu *DbPackageUpdate) sqlSave(ctx context.Context) (n int, err error) {
|
||||
Column: dbpackage.FieldStatus,
|
||||
})
|
||||
}
|
||||
if dpu.mutation.StatusCleared() {
|
||||
_spec.Fields.Clear = append(_spec.Fields.Clear, &sqlgraph.FieldSpec{
|
||||
Type: field.TypeInt,
|
||||
Column: dbpackage.FieldStatus,
|
||||
})
|
||||
}
|
||||
if value, ok := dpu.mutation.SkipReason(); ok {
|
||||
_spec.Fields.Set = append(_spec.Fields.Set, &sqlgraph.FieldSpec{
|
||||
Type: field.TypeString,
|
||||
@@ -494,12 +482,6 @@ func (dpuo *DbPackageUpdateOne) AddStatus(i int) *DbPackageUpdateOne {
|
||||
return dpuo
|
||||
}
|
||||
|
||||
// ClearStatus clears the value of the "status" field.
|
||||
func (dpuo *DbPackageUpdateOne) ClearStatus() *DbPackageUpdateOne {
|
||||
dpuo.mutation.ClearStatus()
|
||||
return dpuo
|
||||
}
|
||||
|
||||
// SetSkipReason sets the "skip_reason" field.
|
||||
func (dpuo *DbPackageUpdateOne) SetSkipReason(s string) *DbPackageUpdateOne {
|
||||
dpuo.mutation.SetSkipReason(s)
|
||||
@@ -795,12 +777,6 @@ func (dpuo *DbPackageUpdateOne) sqlSave(ctx context.Context) (_node *DbPackage,
|
||||
Column: dbpackage.FieldStatus,
|
||||
})
|
||||
}
|
||||
if dpuo.mutation.StatusCleared() {
|
||||
_spec.Fields.Clear = append(_spec.Fields.Clear, &sqlgraph.FieldSpec{
|
||||
Type: field.TypeInt,
|
||||
Column: dbpackage.FieldStatus,
|
||||
})
|
||||
}
|
||||
if value, ok := dpuo.mutation.SkipReason(); ok {
|
||||
_spec.Fields.Set = append(_spec.Fields.Set, &sqlgraph.FieldSpec{
|
||||
Type: field.TypeString,
|
||||
|
Reference in New Issue
Block a user