fix: auto migrate tries to delete non-existent unique constraint #1455
reviewdog.yml
on: pull_request
runner / golangci-lint
17s
Annotations
1 error
runner / golangci-lint:
migrator/migrator.go#L763
[golangci] reported by reviewdog 🐶
S1028: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (gosimple)
Raw Output:
migrator/migrator.go:763:11: S1028: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (gosimple)
return errors.New(fmt.Sprintf("Can't find constraint for %q, with guessed name %q", name, constraint))
^
|