mirror of
https://github.com/go-gitea/gitea
synced 2024-11-05 13:49:10 +01:00
0585ac3ac6
`golangci-lint` [deprecated](https://github.com/golangci/golangci-lint/issues/1841) a bunch of linters, removed them.
14 lines
367 B
Go
14 lines
367 B
Go
// Copyright 2022 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_18 //nolint
|
|
|
|
import (
|
|
"xorm.io/builder"
|
|
"xorm.io/xorm"
|
|
)
|
|
|
|
func FixPackageSemverField(x *xorm.Engine) error {
|
|
_, err := x.Exec(builder.Update(builder.Eq{"semver_compatible": false}).From("`package`").Where(builder.In("`type`", "conan", "generic")))
|
|
return err
|
|
}
|