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 @@