mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-29 11:21:58 +08:00
fix: text too long for some option field
This commit is contained in:
@@ -14,7 +14,7 @@ type Group struct {
|
|||||||
ShareEnabled bool
|
ShareEnabled bool
|
||||||
WebDAVEnabled bool
|
WebDAVEnabled bool
|
||||||
SpeedLimit int
|
SpeedLimit int
|
||||||
Options string `json:"-",gorm:"type:text"`
|
Options string `json:"-" gorm:"size:4294967295"`
|
||||||
|
|
||||||
// 数据库忽略字段
|
// 数据库忽略字段
|
||||||
PolicyList []uint `gorm:"-"`
|
PolicyList []uint `gorm:"-"`
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ type User struct {
|
|||||||
Storage uint64
|
Storage uint64
|
||||||
TwoFactor string
|
TwoFactor string
|
||||||
Avatar string
|
Avatar string
|
||||||
Options string `json:"-" gorm:"type:text"`
|
Options string `json:"-" gorm:"size:4294967295"`
|
||||||
Authn string `gorm:"type:text"`
|
Authn string `gorm:"size:4294967295"`
|
||||||
|
|
||||||
// 关联模型
|
// 关联模型
|
||||||
Group Group `gorm:"save_associations:false:false"`
|
Group Group `gorm:"save_associations:false:false"`
|
||||||
|
|||||||
Reference in New Issue
Block a user