Update host (#278)

* Add IsNotNullError function to db package

* Let the database handle default values not gorm

* Implement UpdateHost

* Remove unnecessary clone
This commit is contained in:
Michael Gaffney authored and GitHub committed 2020-08-18 16:50:26 -04:00
1 parent e18cdc52b3
commit 041e1f9fd3
6 files changed
+647 -4

No files matched your search

@@ -67,7 +67,7 @@ message Host {
// address is the IP Address or DNS name of the host. It must be set and
// it must be unique within catalog_id.
// @inject_tag: `gorm:"not_null"`
// @inject_tag: `gorm:"default:null"`
string address = 7;
// version allows optimistic locking of the resource