refactor: 增加测试用例名称长度

This commit is contained in:
chenjianxing 2021-01-06 13:54:02 +08:00
parent f810d15bfb
commit cc3006b9a1
5 changed files with 5 additions and 4 deletions

View File

@ -13,7 +13,7 @@ import javax.validation.constraints.Pattern;
public class TestCaseExcelDataCn extends TestCaseExcelData {
@NotBlank(message = "{cannot_be_null}")
@Length(max = 50)
@Length(max = 255)
@ExcelProperty("用例名称")
private String name;

View File

@ -13,7 +13,7 @@ import javax.validation.constraints.Pattern;
public class TestCaseExcelDataTw extends TestCaseExcelData {
@NotBlank(message = "{cannot_be_null}")
@Length(max = 50)
@Length(max = 255)
@ExcelProperty("用例名稱")
private String name;

View File

@ -14,7 +14,7 @@ import javax.validation.constraints.Pattern;
public class TestCaseExcelDataUs extends TestCaseExcelData {
@NotBlank(message = "{cannot_be_null}")
@Length(max = 50)
@Length(max = 255)
@ExcelProperty("Name")
private String name;

View File

@ -1,5 +1,5 @@
alter table test_plan add project_id varchar(50) null comment '测试计划所属项目';
ALTER TABLE api_test_case MODIFY COLUMN name varchar(255) NOT NULL COMMENT 'Test name';
ALTER TABLE api_test_case MODIFY COLUMN name varchar(255) NOT NULL COMMENT 'Test case name';
DROP PROCEDURE IF EXISTS test_cursor;
DELIMITER //

View File

@ -0,0 +1 @@
ALTER TABLE test_case MODIFY COLUMN name varchar(255) NOT NULL COMMENT 'Test case name';