From 942a3718bc17a3c53531c46b3af5ea7ba55d12a3 Mon Sep 17 00:00:00 2001
From: seagull <24163551@qq.com>
Date: Tue, 20 Nov 2018 17:39:59 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=8F=E8=AE=AE=E6=A8=A1?=
=?UTF-8?q?=E6=9D=BF=E4=BB=A5=E5=8F=8A=E5=8F=82=E6=95=B0=E4=B8=AD=E7=9A=84?=
=?UTF-8?q?=E9=95=BF=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mysqldb/initialization(create table)/V2.7.1 初始化.sql | 4 ++--
mysqldb/update(alter table)/V2.7 upgrade V2.7.1/V2.7.1.sql | 4 ++++
src/main/resources/ProjectProtocolTemplate.hbm.xml | 2 +-
src/main/resources/ProjectTemplateParams.hbm.xml | 2 +-
src/main/webapp/jsp/plancase/ptctemplate.jsp | 4 ++--
src/main/webapp/jsp/plancase/templateparam.jsp | 4 ++--
6 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/mysqldb/initialization(create table)/V2.7.1 初始化.sql b/mysqldb/initialization(create table)/V2.7.1 初始化.sql
index 8cd2c87..fea846b 100644
--- a/mysqldb/initialization(create table)/V2.7.1 初始化.sql
+++ b/mysqldb/initialization(create table)/V2.7.1 初始化.sql
@@ -370,7 +370,7 @@ create table project_protocoltemplate
id int(8) not null AUTO_INCREMENT,
projectid int(8) not null COMMENT '项目ID',
name VARCHAR(50) not null COMMENT '模板名称',
- headmsg VARCHAR(1500) COMMENT '消息头',
+ headmsg VARCHAR(3000) COMMENT '消息头',
protocoltype VARCHAR(20) not null COMMENT '协议类型',
cerpath VARCHAR(300) COMMENT '客户端中的证书路径',
contentencoding VARCHAR(20) not null COMMENT '编码格式',
@@ -386,7 +386,7 @@ create table project_templateparams
id int(9) not null AUTO_INCREMENT,
templateid int(8) not null COMMENT '模块ID',
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 文件类型',
primary key (ID)
)default character set utf8;
diff --git a/mysqldb/update(alter table)/V2.7 upgrade V2.7.1/V2.7.1.sql b/mysqldb/update(alter table)/V2.7 upgrade V2.7.1/V2.7.1.sql
index cb5b1ab..6626bee 100644
--- a/mysqldb/update(alter table)/V2.7 upgrade V2.7.1/V2.7.1.sql
+++ b/mysqldb/update(alter table)/V2.7 upgrade V2.7.1/V2.7.1.sql
@@ -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 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);
\ No newline at end of file
diff --git a/src/main/resources/ProjectProtocolTemplate.hbm.xml b/src/main/resources/ProjectProtocolTemplate.hbm.xml
index 9bb3d5c..3847fc2 100644
--- a/src/main/resources/ProjectProtocolTemplate.hbm.xml
+++ b/src/main/resources/ProjectProtocolTemplate.hbm.xml
@@ -15,7 +15,7 @@
-
+
diff --git a/src/main/resources/ProjectTemplateParams.hbm.xml b/src/main/resources/ProjectTemplateParams.hbm.xml
index 5efadf8..67d6f58 100644
--- a/src/main/resources/ProjectTemplateParams.hbm.xml
+++ b/src/main/resources/ProjectTemplateParams.hbm.xml
@@ -15,7 +15,7 @@
-
+
diff --git a/src/main/webapp/jsp/plancase/ptctemplate.jsp b/src/main/webapp/jsp/plancase/ptctemplate.jsp
index d4c6f42..12aae85 100644
--- a/src/main/webapp/jsp/plancase/ptctemplate.jsp
+++ b/src/main/webapp/jsp/plancase/ptctemplate.jsp
@@ -390,8 +390,8 @@ td{
validators : {
stringLength : {
min : 0,
- max : 1500,
- message : '请求头域长度必须小于1500个字符'
+ max : 3000,
+ message : '请求头域长度必须小于3000个字符'
}
}
},
diff --git a/src/main/webapp/jsp/plancase/templateparam.jsp b/src/main/webapp/jsp/plancase/templateparam.jsp
index e3f0b07..bb19aff 100644
--- a/src/main/webapp/jsp/plancase/templateparam.jsp
+++ b/src/main/webapp/jsp/plancase/templateparam.jsp
@@ -264,8 +264,8 @@
validators : {
stringLength : {
min : 0,
- max : 2000,
- message : '【参数默认值】长度必须在0~2000个字符区间'
+ max : 5000,
+ message : '【参数默认值】长度必须在0~5000个字符区间'
}
}
},