增加协议模板以及参数中的长度

This commit is contained in:
seagull 2018-11-20 17:39:59 +08:00
parent 79b7de8364
commit 942a3718bc
6 changed files with 12 additions and 8 deletions

View File

@ -370,7 +370,7 @@ create table project_protocoltemplate
id int(8) not null AUTO_INCREMENT, id int(8) not null AUTO_INCREMENT,
projectid int(8) not null COMMENT '项目ID', projectid int(8) not null COMMENT '项目ID',
name VARCHAR(50) not null COMMENT '模板名称', name VARCHAR(50) not null COMMENT '模板名称',
headmsg VARCHAR(1500) COMMENT '消息头', headmsg VARCHAR(3000) COMMENT '消息头',
protocoltype VARCHAR(20) not null COMMENT '协议类型', protocoltype VARCHAR(20) not null COMMENT '协议类型',
cerpath VARCHAR(300) COMMENT '客户端中的证书路径', cerpath VARCHAR(300) COMMENT '客户端中的证书路径',
contentencoding VARCHAR(20) not null COMMENT '编码格式', contentencoding VARCHAR(20) not null COMMENT '编码格式',
@ -386,7 +386,7 @@ create table project_templateparams
id int(9) not null AUTO_INCREMENT, id int(9) not null AUTO_INCREMENT,
templateid int(8) not null COMMENT '模块ID', templateid int(8) not null COMMENT '模块ID',
paramname VARCHAR(50) not null COMMENT '参数名', paramname VARCHAR(50) not null COMMENT '参数名',
param VARCHAR(2000) COMMENT '参数默认值', param VARCHAR(5000) COMMENT '参数默认值',
paramtype int(4) not null COMMENT '0 String 1 JSON对象 2 JSONARR对象 3 文件类型', paramtype int(4) not null COMMENT '0 String 1 JSON对象 2 JSONARR对象 3 文件类型',
primary key (ID) primary key (ID)
)default character set utf8; )default character set utf8;

View File

@ -38,3 +38,7 @@ update project_casestepsparams set description='调用指定接口|Web UI用例'
ALTER TABLE test_jobs ADD COLUMN sendcondition int(4) NULL DEFAULT 0 COMMENT '发送邮件通知时的具体逻辑, 0-全部1-成功2-失败'; ALTER TABLE test_jobs ADD COLUMN sendcondition int(4) NULL DEFAULT 0 COMMENT '发送邮件通知时的具体逻辑, 0-全部1-成功2-失败';
/* 控制用例步骤失败后是否继续*/ /* 控制用例步骤失败后是否继续*/
ALTER TABLE project_case ADD COLUMN failcontinue int(2) NULL DEFAULT 0 COMMENT '失败了是否继续0不继续1继续'; ALTER TABLE project_case ADD COLUMN failcontinue int(2) NULL DEFAULT 0 COMMENT '失败了是否继续0不继续1继续';
/*增加协议模板中头域字段的长度*/
alter table project_protocoltemplate modify column headmsg varchar(3000);
/*增加模板参数中参数字段的长度*/
alter table project_templateparams modify column param varchar(5000);

View File

@ -15,7 +15,7 @@
<column name="name" length="50" not-null="true" /> <column name="name" length="50" not-null="true" />
</property> </property>
<property name="headmsg" type="java.lang.String"> <property name="headmsg" type="java.lang.String">
<column name="headmsg" length="1500" not-null="false" /> <column name="headmsg" length="3000" not-null="false" />
</property> </property>
<property name="protocoltype" type="java.lang.String"> <property name="protocoltype" type="java.lang.String">
<column name="protocoltype" length="20" not-null="true" /> <column name="protocoltype" length="20" not-null="true" />

View File

@ -15,7 +15,7 @@
<column name="paramname" length="50" not-null="true" /> <column name="paramname" length="50" not-null="true" />
</property> </property>
<property name="param" type="java.lang.String"> <property name="param" type="java.lang.String">
<column name="param" length="2000" not-null="false" /> <column name="param" length="5000" not-null="false" />
</property> </property>
<property name="paramtype" type="java.lang.Integer"> <property name="paramtype" type="java.lang.Integer">
<column name="paramtype" length="4" not-null="true" /> <column name="paramtype" length="4" not-null="true" />

View File

@ -390,8 +390,8 @@ td{
validators : { validators : {
stringLength : { stringLength : {
min : 0, min : 0,
max : 1500, max : 3000,
message : '请求头域长度必须小于1500个字符' message : '请求头域长度必须小于3000个字符'
} }
} }
}, },

View File

@ -264,8 +264,8 @@
validators : { validators : {
stringLength : { stringLength : {
min : 0, min : 0,
max : 2000, max : 5000,
message : '【参数默认值】长度必须在0~2000个字符区间' message : '【参数默认值】长度必须在0~5000个字符区间'
} }
} }
}, },