File tree Expand file tree Collapse file tree
packages/derisk-serve/src/derisk_serve/building/config/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use derisk;
99-- MySQL DDL Script for Derisk
1010-- Version: 0.3.0
1111-- Generated from SQLAlchemy ORM Models
12- -- Generated: 2026-03-18 00:22:14
12+ -- Generated: 2026-03-21 15:56:36
1313-- ============================================================
1414
1515SET NAMES utf8mb4;
@@ -478,7 +478,7 @@ CREATE TABLE IF NOT EXISTS `gpts_app_config` (
478478 ` system_prompt_template` TEXT NULL COMMENT ' 当前版本配置的system prompt模版' ,
479479 ` user_prompt_template` TEXT NULL COMMENT ' 当前版本配置的user prompt模版' ,
480480 ` layout` VARCHAR (255 ) NULL COMMENT ' 当前版本配置的布局配置' ,
481- ` custom_variables` VARCHAR ( 2000 ) NULL COMMENT ' 当前版本配置自定义参数配置' ,
481+ ` custom_variables` TEXT NULL COMMENT ' 当前版本配置自定义参数配置' ,
482482 ` llm_config` TEXT NULL COMMENT ' 当前版本配置的模型配置' ,
483483 ` resource_knowledge` TEXT NULL COMMENT ' 当前版本配置的知识配置' ,
484484 ` resource_tool` TEXT NULL COMMENT ' 当前版本配置的工具配置' ,
Original file line number Diff line number Diff line change 1+ -- Upgrade script: extend custom_variables column from VARCHAR(2000) to TEXT
2+ -- Issue: Data too long for column 'custom_variables' when saving agent configs
3+ -- Date: 2026-03-23
4+
5+ -- For MySQL/MariaDB
6+ ALTER TABLE ` gpts_app_config` MODIFY COLUMN ` custom_variables` TEXT NULL COMMENT ' 当前版本配置自定义参数配置' ;
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class ServeEntity(Model):
8181
8282 layout = Column (String (255 ), nullable = True , comment = "当前版本配置的布局配置" )
8383 custom_variables = Column (
84- String ( 2000 ) , nullable = True , comment = "当前版本配置自定义参数配置"
84+ Text , nullable = True , comment = "当前版本配置自定义参数配置"
8585 )
8686 llm_config = Column (Text , nullable = True , comment = "当前版本配置的模型配置" )
8787 resource_knowledge = Column (Text , nullable = True , comment = "当前版本配置的知识配置" )
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ CREATE TABLE IF NOT EXISTS `gpts_app_config` (
126126 ` system_prompt_template` TEXT NULL COMMENT ' 当前版本配置的system prompt模版' ,
127127 ` user_prompt_template` TEXT NULL COMMENT ' 当前版本配置的user prompt模版' ,
128128 ` layout` VARCHAR (255 ) NULL COMMENT ' 当前版本配置的布局配置' ,
129- ` custom_variables` VARCHAR ( 2000 ) NULL COMMENT ' 当前版本配置自定义参数配置' ,
129+ ` custom_variables` TEXT NULL COMMENT ' 当前版本配置自定义参数配置' ,
130130 ` llm_config` VARCHAR (1000 ) NULL COMMENT ' 当前版本配置的模型配置' ,
131131 ` resource_knowledge` VARCHAR (2000 ) NULL COMMENT ' 当前版本配置的知识配置' ,
132132 ` resource_tool` VARCHAR (2000 ) NULL COMMENT ' 当前版本配置的工具配置' ,
You can’t perform that action at this time.
0 commit comments