fix v1 sql field type

This commit is contained in:
bwcx_jzy 2021-09-13 17:51:38 +08:00
parent 2eb76b0cd4
commit 8c6ddb9a43

View File

@ -4,14 +4,14 @@ CREATE TABLE IF NOT EXISTS PUBLIC.USEROPERATELOGV1
REQID VARCHAR(50) NOT NULL COMMENT '请求ID',
IP VARCHAR(30) COMMENT '客户端IP地址',
USERID VARCHAR(30) COMMENT '操作的用户ID',
RESULTMSG VARCHAR(1000000000) COMMENT '操作的结果信息',
RESULTMSG CLOB COMMENT '操作的结果信息',
OPTTYPE INTEGER COMMENT '操作类型',
OPTSTATUS INTEGER COMMENT '操作状态 成功/失败',
OPTTIME BIGINT COMMENT '操作时间',
NODEID VARCHAR(30) COMMENT '节点ID',
DATAID VARCHAR(50) COMMENT '操作的数据ID',
USERAGENT VARCHAR(300) COMMENT '浏览器标识',
REQDATA VARCHAR(1000000000) COMMENT '用户请求参数',
REQDATA CLOB COMMENT '用户请求参数',
CONSTRAINT USEROPERATELOGV1_PK PRIMARY KEY (REQID)
);
COMMENT ON TABLE USEROPERATELOGV1 is '操作日志';
@ -25,12 +25,12 @@ CREATE TABLE IF NOT EXISTS PUBLIC.MONITORNOTIFYLOG
PROJECTID VARCHAR(30) COMMENT '项目id',
CREATETIME BIGINT COMMENT '异常时间',
TITLE VARCHAR(100) COMMENT '异常描述',
CONTENT VARCHAR(1000000) COMMENT '异常内容',
CONTENT CLOB COMMENT '异常内容',
STATUS TINYINT COMMENT '当前状态',
NOTIFYSTYLE TINYINT COMMENT '通知方式',
NOTIFYSTATUS TINYINT COMMENT '通知状态',
NOTIFYOBJECT varchar(10000) COMMENT '通知对象',
NOTIFYERROR varchar(1000000) COMMENT '通知异常内容',
NOTIFYERROR CLOB COMMENT '通知异常内容',
CONSTRAINT MONITORNOTIFYLOG_PK PRIMARY KEY (LOGID)
);
COMMENT ON TABLE MONITORNOTIFYLOG is '监控异常日志记录';
@ -60,7 +60,7 @@ ALTER TABLE BUILDHISTORYLOG
ALTER TABLE BUILDHISTORYLOG
ADD IF NOT EXISTS NAME VARCHAR(100) COMMENT '构建名称';
ALTER TABLE BUILDHISTORYLOG
ADD IF NOT EXISTS RELEASECOMMAND VARCHAR(100) COMMENT '发布命令';
ADD IF NOT EXISTS RELEASECOMMAND CLOB COMMENT '发布命令';
ALTER TABLE BUILDHISTORYLOG
ADD IF NOT EXISTS RELEASEPATH VARCHAR(100) COMMENT '发布到的目录';
@ -72,7 +72,7 @@ CREATE TABLE IF NOT EXISTS PUBLIC.OUTGIVINGLOG
STATUS TINYINT comment '状态',
STARTTIME BIGINT comment '开始时间',
ENDTIME BIGINT comment '结束时间',
RESULT VARCHAR(100000) comment '消息',
RESULT CLOB comment '消息',
NODEID VARCHAR(100) comment '节点id',
PROJECTID VARCHAR(100) comment '项目id',
CONSTRAINT OUTGIVINGLOG_PK PRIMARY KEY (ID)
@ -99,7 +99,7 @@ ALTER TABLE SYSTEMMONITORLOG
ALTER COLUMN MONITORTIME BIGINT;
ALTER TABLE BUILDHISTORYLOG
ALTER COLUMN RELEASECOMMAND VARCHAR(5000) COMMENT '发布命令';
ALTER COLUMN RELEASECOMMAND CLOB COMMENT '发布命令';
CREATE UNIQUE INDEX IF NOT EXISTS SYSTEMMONITORLOG_INDEX1 ON PUBLIC.SYSTEMMONITORLOG (NODEID, MONITORTIME);