Skip to content

Commit 3aa4b08

Browse files
Arta AsadiArta Asadi
authored andcommitted
fix: fix default in owner and visibility in named query
1 parent 5e089b2 commit 3aa4b08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/core/db/models/inventory-models.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ type NamedQuery struct {
3838
Tags []NamedQueryTag `gorm:"foreignKey:NamedQueryID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
3939
CacheEnabled bool
4040
// default is system
41-
Owner string `gorm:"type:text:default:system"`
42-
Visibility string `gorm:"type:text:default:public"`
41+
Owner string `gorm:"type:text;default:system"`
42+
Visibility string `gorm:"type:text;default:public"`
4343
}
4444

4545
type NamedQueryHistory struct {

0 commit comments

Comments
 (0)