1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: enable experimental column altering for cockroachdb (see #442)

This commit is contained in:
Ferdinand Mütsch
2022-12-16 12:33:01 +01:00
parent 8a26e24081
commit cd5c511474
4 changed files with 38 additions and 6 deletions

View File

@ -34,7 +34,7 @@ type Summary struct {
Machines SummaryItems `json:"machines" gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE"`
Labels SummaryItems `json:"labels" gorm:"-"` // labels are not persisted, but calculated at runtime, i.e. when summary is retrieved
Branches SummaryItems `json:"branches" gorm:"-"` // branches are not persisted, but calculated at runtime in case a project filter is applied
NumHeartbeats int `json:"-" gorm:"default:0"`
NumHeartbeats int `json:"-"`
}
type SummaryItems []*SummaryItem