perf: tenantServiceVolume tenantServiceConfigFile field Increase Length (#1408)

This commit is contained in:
张启航 2022-11-01 17:59:57 +08:00 committed by GitHub
parent d0c360d345
commit 92f9469fb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -518,7 +518,7 @@ type TenantServiceVolume struct {
//存储名称
VolumeName string `gorm:"column:volume_name;size:40" json:"volume_name"`
//主机地址
HostPath string `gorm:"column:host_path" json:"host_path"`
HostPath string `gorm:"column:host_path;type:text" json:"host_path"`
//挂载地址
VolumePath string `gorm:"column:volume_path" json:"volume_path"`
//是否只读
@ -554,7 +554,7 @@ func (t *TenantServiceVolume) Key() string {
type TenantServiceConfigFile struct {
Model
ServiceID string `gorm:"column:service_id;size:32" json:"service_id"`
VolumeName string `gorm:"column:volume_name;size:32" json:"volume_name"`
VolumeName string `gorm:"column:volume_name;size:128" json:"volume_name"`
FileContent string `gorm:"column:file_content;size:65535" json:"filename"`
}