Plant catalog backend: CRUD + seeded built-ins (#12)
Build image / build-and-push (push) Successful in 5s
Build image / build-and-push (push) Successful in 5s
Co-authored-by: Steve Dudenhoeffer <[email protected]>
This commit was merged in pull request #31.
This commit is contained in:
@@ -17,6 +17,9 @@ var (
|
||||
// ErrVersionConflict means the row's version did not match the one supplied
|
||||
// with a PATCH/DELETE; the caller should refetch and retry.
|
||||
ErrVersionConflict = errors.New("version conflict")
|
||||
// ErrPlantInUse means a plant can't be deleted because plantings still
|
||||
// reference it (the FK is ON DELETE RESTRICT). Mapped to 409.
|
||||
ErrPlantInUse = errors.New("plant is referenced by plantings")
|
||||
|
||||
// ErrInvalidInput means the caller supplied structurally invalid data (empty
|
||||
// required field, malformed value). Mapped to 400.
|
||||
|
||||
Reference in New Issue
Block a user