From 64737c02efcbc7a4ed091e3e84cdf2e02b6cb796 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 17 Mar 2023 17:33:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):?= =?UTF-8?q?=20=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8BText=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E7=9A=84=E5=AD=97=E6=AE=B5=E6=94=B9=E6=88=90LONGTEXT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1024584 --user=陈建星 【测试跟踪】功能用例新建/编辑-文本描述步骤超长保sql异常-提示不明确 https://www.tapd.cn/55049933/s/1352330 --- .../ddl/V11__alter_test_case_text_field_length.sql | 10 ++++++++++ .../case/components/case/CaseCommentComponent.vue | 2 +- .../case/components/case/CaseCommentViewItem.vue | 3 +-- 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 test-track/backend/src/main/resources/db/migration/2.8.0/ddl/V11__alter_test_case_text_field_length.sql diff --git a/test-track/backend/src/main/resources/db/migration/2.8.0/ddl/V11__alter_test_case_text_field_length.sql b/test-track/backend/src/main/resources/db/migration/2.8.0/ddl/V11__alter_test_case_text_field_length.sql new file mode 100644 index 0000000000..9b7dfa8472 --- /dev/null +++ b/test-track/backend/src/main/resources/db/migration/2.8.0/ddl/V11__alter_test_case_text_field_length.sql @@ -0,0 +1,10 @@ +SET SESSION innodb_lock_wait_timeout = 7200; + +-- 文本字段改成 LONGTEXT +ALTER TABLE test_case MODIFY COLUMN prerequisite LONGTEXT NULL COMMENT 'Test case prerequisite condition'; +ALTER TABLE test_case MODIFY COLUMN remark LONGTEXT NULL COMMENT 'Test case remark'; +ALTER TABLE test_case MODIFY COLUMN steps LONGTEXT NULL COMMENT 'Test case steps (JSON format)'; +ALTER TABLE test_case MODIFY COLUMN step_description LONGTEXT NULL; +ALTER TABLE test_case MODIFY COLUMN expected_result LONGTEXT NULL; + +SET SESSION innodb_lock_wait_timeout = DEFAULT; diff --git a/test-track/frontend/src/business/case/components/case/CaseCommentComponent.vue b/test-track/frontend/src/business/case/components/case/CaseCommentComponent.vue index 6a9e871ff4..bc7691a054 100644 --- a/test-track/frontend/src/business/case/components/case/CaseCommentComponent.vue +++ b/test-track/frontend/src/business/case/components/case/CaseCommentComponent.vue @@ -55,7 +55,7 @@ export default { } let userObj = JSON.parse(token); let name = userObj.name; - return name.substring(0, 2).toUpperCase(); + return name.substring(0, 1).toUpperCase(); }, toEdit() { this.state = "EDIT"; diff --git a/test-track/frontend/src/business/case/components/case/CaseCommentViewItem.vue b/test-track/frontend/src/business/case/components/case/CaseCommentViewItem.vue index eb87a6426e..f31dcb46ca 100644 --- a/test-track/frontend/src/business/case/components/case/CaseCommentViewItem.vue +++ b/test-track/frontend/src/business/case/components/case/CaseCommentViewItem.vue @@ -44,7 +44,6 @@