fix(项目管理): 模板文本类型填写超长文本,保存报错

--bug=1027789 --user=陈建星 【项目设置】用例模版-创建模版-多个内容过长报sql错误 https://www.tapd.cn/55049933/s/1397612
This commit is contained in:
jianxing 2023-07-26 10:39:43 +08:00 committed by fit2-zhao
parent b17dd5b5c8
commit 52b94aa95b
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- 将 TEXT 改成 LONGTEXT
ALTER TABLE test_case_template MODIFY COLUMN prerequisite LONGTEXT NULL COMMENT 'Test case prerequisite';
ALTER TABLE test_case_template MODIFY COLUMN step_description LONGTEXT NULL COMMENT 'Test case steps desc';
ALTER TABLE test_case_template MODIFY COLUMN expected_result LONGTEXT NULL COMMENT 'Test case expected result';
ALTER TABLE test_case_template MODIFY COLUMN actual_result LONGTEXT NULL COMMENT 'Test case actual result';
ALTER TABLE test_case_template MODIFY COLUMN steps LONGTEXT NULL COMMENT 'Test case step';
ALTER TABLE custom_field_template MODIFY COLUMN default_value LONGTEXT NULL;
ALTER TABLE issue_template MODIFY COLUMN content LONGTEXT NULL COMMENT 'Issue content';
SET SESSION innodb_lock_wait_timeout = DEFAULT;