mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 05:23:47 +08:00
Go: fix migration (#17659)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@ type CompilationTemplate struct {
|
||||
Name string `gorm:"column:name;size:128;not null;index" json:"name"`
|
||||
Description *string `gorm:"column:description;type:text" json:"description,omitempty"`
|
||||
Kind string `gorm:"column:kind;size:64;not null;index" json:"kind"`
|
||||
Config JSONMap `gorm:"column:config;type:text;not null;default:'{}'" json:"config"`
|
||||
Config JSONMap `gorm:"column:config;type:text;not null" json:"config"`
|
||||
IsBuiltin bool `gorm:"column:is_builtin;not null;default:false;index" json:"is_builtin"`
|
||||
Status *string `gorm:"column:status;size:1;default:1;index" json:"status,omitempty"`
|
||||
BaseModel
|
||||
|
||||
@@ -82,3 +82,7 @@ func (c *Config) parseClickhouseConfig(v *viper.Viper) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Config) GetClickhouseConfig() ClickhouseConfig {
|
||||
return c.analyticEngine.Clickhouse
|
||||
}
|
||||
|
||||
@@ -70,3 +70,7 @@ func (c *Config) ParseOpenTelemetryConfig(v *viper.Viper) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Config) GetOpenTelemetryConfig() OpenTelemetryConfig {
|
||||
return c.oTel
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user