Browse Source

🎉 更新sql脚本

test
smallchill 5 years ago
parent
commit
acd8b0701d
  1. 4
      doc/sql/mysql/bladex-saber-mysql.sql
  2. 6
      doc/sql/mysql/bladex-sword-mysql.sql
  3. 8
      doc/sql/oracle/bladex-saber-oracle.sql
  4. 84
      doc/sql/oracle/bladex-sword-oracle.sql
  5. 8
      doc/sql/postgresql/bladex-saber-postgresql.sql
  6. 76
      doc/sql/postgresql/bladex-sword-postgresql.sql
  7. 2
      doc/sql/update/mysql-update-2.1.0~2.2.0.sql
  8. 7
      doc/sql/update/mysql-update-2.2.0~2.2.1.sql
  9. 4
      doc/sql/update/oracle-update-2.1.0~2.2.0.sql
  10. 14
      doc/sql/update/oracle-update-2.2.0~2.2.1.sql
  11. 4
      doc/sql/update/postgresql-update-2.1.0~2.2.0.sql
  12. 14
      doc/sql/update/postgresql-update-2.2.0~2.2.1.sql

4
doc/sql/mysql/bladex-saber-mysql.sql

@ -201,6 +201,7 @@ CREATE TABLE `blade_log_error` (
`exception_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '异常名', `exception_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '异常名',
`message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '异常信息', `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '异常信息',
`line_number` int(11) NULL DEFAULT NULL COMMENT '错误行数', `line_number` int(11) NULL DEFAULT NULL COMMENT '错误行数',
`remote_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作IP地址',
`method_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方法类', `method_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方法类',
`file_name` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文件名', `file_name` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文件名',
`method_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方法名', `method_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方法名',
@ -226,6 +227,9 @@ CREATE TABLE `blade_log_usual` (
`log_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '日志数据', `log_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '日志数据',
`method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作方式', `method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作方式',
`request_uri` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求URI', `request_uri` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求URI',
`remote_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作IP地址',
`method_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方法类',
`method_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方法名',
`user_agent` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户代理', `user_agent` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户代理',
`params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '操作提交的数据', `params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '操作提交的数据',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者', `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',

6
doc/sql/mysql/bladex-sword-mysql.sql

@ -201,6 +201,7 @@ CREATE TABLE `blade_log_error` (
`exception_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '异常名', `exception_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '异常名',
`message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '异常信息', `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '异常信息',
`line_number` int(11) NULL DEFAULT NULL COMMENT '错误行数', `line_number` int(11) NULL DEFAULT NULL COMMENT '错误行数',
`remote_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作IP地址',
`method_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方法类', `method_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方法类',
`file_name` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文件名', `file_name` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文件名',
`method_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方法名', `method_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方法名',
@ -226,11 +227,14 @@ CREATE TABLE `blade_log_usual` (
`log_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '日志数据', `log_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '日志数据',
`method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作方式', `method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作方式',
`request_uri` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求URI', `request_uri` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求URI',
`remote_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作IP地址',
`method_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方法类',
`method_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方法名',
`user_agent` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户代理', `user_agent` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户代理',
`params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '操作提交的数据', `params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '操作提交的数据',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者', `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间', `create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通用日志表'; ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通用日志表';
-- ---------------------------- -- ----------------------------

8
doc/sql/oracle/bladex-saber-oracle.sql

@ -420,6 +420,7 @@ CREATE TABLE "BLADE_LOG_ERROR" (
"EXCEPTION_NAME" NVARCHAR2(255) , "EXCEPTION_NAME" NVARCHAR2(255) ,
"MESSAGE" NCLOB , "MESSAGE" NCLOB ,
"LINE_NUMBER" NUMBER(11) , "LINE_NUMBER" NUMBER(11) ,
"REMOTE_IP" NVARCHAR2(255) ,
"METHOD_CLASS" NVARCHAR2(255) , "METHOD_CLASS" NVARCHAR2(255) ,
"FILE_NAME" NVARCHAR2(1000) , "FILE_NAME" NVARCHAR2(1000) ,
"METHOD_NAME" NVARCHAR2(255) , "METHOD_NAME" NVARCHAR2(255) ,
@ -456,6 +457,7 @@ COMMENT ON COLUMN "BLADE_LOG_ERROR"."STACK_TRACE" IS '堆栈';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."EXCEPTION_NAME" IS '异常名'; COMMENT ON COLUMN "BLADE_LOG_ERROR"."EXCEPTION_NAME" IS '异常名';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."MESSAGE" IS '异常信息'; COMMENT ON COLUMN "BLADE_LOG_ERROR"."MESSAGE" IS '异常信息';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."LINE_NUMBER" IS '错误行数'; COMMENT ON COLUMN "BLADE_LOG_ERROR"."LINE_NUMBER" IS '错误行数';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."REMOTE_IP" IS '操作IP地址';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."METHOD_CLASS" IS '方法类'; COMMENT ON COLUMN "BLADE_LOG_ERROR"."METHOD_CLASS" IS '方法类';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."FILE_NAME" IS '文件名'; COMMENT ON COLUMN "BLADE_LOG_ERROR"."FILE_NAME" IS '文件名';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."METHOD_NAME" IS '方法名'; COMMENT ON COLUMN "BLADE_LOG_ERROR"."METHOD_NAME" IS '方法名';
@ -480,6 +482,9 @@ CREATE TABLE "BLADE_LOG_USUAL" (
"LOG_DATA" NCLOB , "LOG_DATA" NCLOB ,
"METHOD" NVARCHAR2(10) , "METHOD" NVARCHAR2(10) ,
"REQUEST_URI" NVARCHAR2(255) , "REQUEST_URI" NVARCHAR2(255) ,
"REMOTE_IP" NVARCHAR2(255) ,
"METHOD_CLASS" NVARCHAR2(255) ,
"METHOD_NAME" NVARCHAR2(255) ,
"USER_AGENT" NVARCHAR2(1000) , "USER_AGENT" NVARCHAR2(1000) ,
"PARAMS" NCLOB , "PARAMS" NCLOB ,
"CREATE_BY" NVARCHAR2(64) , "CREATE_BY" NVARCHAR2(64) ,
@ -512,6 +517,9 @@ COMMENT ON COLUMN "BLADE_LOG_USUAL"."LOG_ID" IS '日志业务ID';
COMMENT ON COLUMN "BLADE_LOG_USUAL"."LOG_DATA" IS '日志数据'; COMMENT ON COLUMN "BLADE_LOG_USUAL"."LOG_DATA" IS '日志数据';
COMMENT ON COLUMN "BLADE_LOG_USUAL"."METHOD" IS '操作方式'; COMMENT ON COLUMN "BLADE_LOG_USUAL"."METHOD" IS '操作方式';
COMMENT ON COLUMN "BLADE_LOG_USUAL"."REQUEST_URI" IS '请求URI'; COMMENT ON COLUMN "BLADE_LOG_USUAL"."REQUEST_URI" IS '请求URI';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."REMOTE_IP" IS '操作IP地址';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."METHOD_CLASS" IS '方法类';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."METHOD_NAME" IS '方法名';
COMMENT ON COLUMN "BLADE_LOG_USUAL"."USER_AGENT" IS '用户代理'; COMMENT ON COLUMN "BLADE_LOG_USUAL"."USER_AGENT" IS '用户代理';
COMMENT ON COLUMN "BLADE_LOG_USUAL"."PARAMS" IS '操作提交的数据'; COMMENT ON COLUMN "BLADE_LOG_USUAL"."PARAMS" IS '操作提交的数据';
COMMENT ON COLUMN "BLADE_LOG_USUAL"."CREATE_BY" IS '创建者'; COMMENT ON COLUMN "BLADE_LOG_USUAL"."CREATE_BY" IS '创建者';

84
doc/sql/oracle/bladex-sword-oracle.sql

@ -407,28 +407,29 @@ COMMENT ON TABLE "BLADE_LOG_API" IS '接口日志表';
-- ---------------------------- -- ----------------------------
-- DROP TABLE "BLADE_LOG_ERROR"; -- DROP TABLE "BLADE_LOG_ERROR";
CREATE TABLE "BLADE_LOG_ERROR" ( CREATE TABLE "BLADE_LOG_ERROR" (
"ID" NUMBER(20) NOT NULL , "ID" NUMBER(20) NOT NULL ,
"TENANT_ID" NVARCHAR2(12) , "TENANT_ID" NVARCHAR2(12) ,
"SERVICE_ID" NVARCHAR2(32) , "SERVICE_ID" NVARCHAR2(32) ,
"SERVER_HOST" NVARCHAR2(255) , "SERVER_HOST" NVARCHAR2(255) ,
"SERVER_IP" NVARCHAR2(255) , "SERVER_IP" NVARCHAR2(255) ,
"ENV" NVARCHAR2(255) , "ENV" NVARCHAR2(255) ,
"METHOD" NVARCHAR2(10) , "METHOD" NVARCHAR2(10) ,
"REQUEST_URI" NVARCHAR2(255) , "REQUEST_URI" NVARCHAR2(255) ,
"USER_AGENT" NVARCHAR2(1000) , "USER_AGENT" NVARCHAR2(1000) ,
"STACK_TRACE" NCLOB , "STACK_TRACE" NCLOB ,
"EXCEPTION_NAME" NVARCHAR2(255) , "EXCEPTION_NAME" NVARCHAR2(255) ,
"MESSAGE" NCLOB , "MESSAGE" NCLOB ,
"LINE_NUMBER" NUMBER(11) , "LINE_NUMBER" NUMBER(11) ,
"METHOD_CLASS" NVARCHAR2(255) , "REMOTE_IP" NVARCHAR2(255) ,
"FILE_NAME" NVARCHAR2(1000) , "METHOD_CLASS" NVARCHAR2(255) ,
"METHOD_NAME" NVARCHAR2(255) , "FILE_NAME" NVARCHAR2(1000) ,
"PARAMS" NCLOB , "METHOD_NAME" NVARCHAR2(255) ,
"CREATE_BY" NVARCHAR2(64) , "PARAMS" NCLOB ,
"CREATE_TIME" DATE "CREATE_BY" NVARCHAR2(64) ,
"CREATE_TIME" DATE
) )
TABLESPACE "BLADEX" TABLESPACE "BLADEX"
LOGGING LOGGING
NOCOMPRESS NOCOMPRESS
PCTFREE 10 PCTFREE 10
INITRANS 1 INITRANS 1
@ -456,6 +457,7 @@ COMMENT ON COLUMN "BLADE_LOG_ERROR"."STACK_TRACE" IS '堆栈';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."EXCEPTION_NAME" IS '异常名'; COMMENT ON COLUMN "BLADE_LOG_ERROR"."EXCEPTION_NAME" IS '异常名';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."MESSAGE" IS '异常信息'; COMMENT ON COLUMN "BLADE_LOG_ERROR"."MESSAGE" IS '异常信息';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."LINE_NUMBER" IS '错误行数'; COMMENT ON COLUMN "BLADE_LOG_ERROR"."LINE_NUMBER" IS '错误行数';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."REMOTE_IP" IS '操作IP地址';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."METHOD_CLASS" IS '方法类'; COMMENT ON COLUMN "BLADE_LOG_ERROR"."METHOD_CLASS" IS '方法类';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."FILE_NAME" IS '文件名'; COMMENT ON COLUMN "BLADE_LOG_ERROR"."FILE_NAME" IS '文件名';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."METHOD_NAME" IS '方法名'; COMMENT ON COLUMN "BLADE_LOG_ERROR"."METHOD_NAME" IS '方法名';
@ -469,24 +471,27 @@ COMMENT ON TABLE "BLADE_LOG_ERROR" IS '错误日志表';
-- ---------------------------- -- ----------------------------
-- DROP TABLE "BLADE_LOG_USUAL"; -- DROP TABLE "BLADE_LOG_USUAL";
CREATE TABLE "BLADE_LOG_USUAL" ( CREATE TABLE "BLADE_LOG_USUAL" (
"ID" NUMBER(20) NOT NULL , "ID" NUMBER(20) NOT NULL ,
"TENANT_ID" NVARCHAR2(12) , "TENANT_ID" NVARCHAR2(12) ,
"SERVICE_ID" NVARCHAR2(32) , "SERVICE_ID" NVARCHAR2(32) ,
"SERVER_HOST" NVARCHAR2(255) , "SERVER_HOST" NVARCHAR2(255) ,
"SERVER_IP" NVARCHAR2(255) , "SERVER_IP" NVARCHAR2(255) ,
"ENV" NVARCHAR2(255) , "ENV" NVARCHAR2(255) ,
"LOG_LEVEL" NVARCHAR2(10) , "LOG_LEVEL" NVARCHAR2(10) ,
"LOG_ID" NVARCHAR2(100) , "LOG_ID" NVARCHAR2(100) ,
"LOG_DATA" NCLOB , "LOG_DATA" NCLOB ,
"METHOD" NVARCHAR2(10) , "METHOD" NVARCHAR2(10) ,
"REQUEST_URI" NVARCHAR2(255) , "REQUEST_URI" NVARCHAR2(255) ,
"USER_AGENT" NVARCHAR2(1000) , "REMOTE_IP" NVARCHAR2(255) ,
"PARAMS" NCLOB , "METHOD_CLASS" NVARCHAR2(255) ,
"CREATE_BY" NVARCHAR2(64) , "METHOD_NAME" NVARCHAR2(255) ,
"CREATE_TIME" DATE "USER_AGENT" NVARCHAR2(1000) ,
"PARAMS" NCLOB ,
"CREATE_BY" NVARCHAR2(64) ,
"CREATE_TIME" DATE
) )
TABLESPACE "BLADEX" TABLESPACE "BLADEX"
LOGGING LOGGING
NOCOMPRESS NOCOMPRESS
PCTFREE 10 PCTFREE 10
INITRANS 1 INITRANS 1
@ -512,6 +517,9 @@ COMMENT ON COLUMN "BLADE_LOG_USUAL"."LOG_ID" IS '日志业务ID';
COMMENT ON COLUMN "BLADE_LOG_USUAL"."LOG_DATA" IS '日志数据'; COMMENT ON COLUMN "BLADE_LOG_USUAL"."LOG_DATA" IS '日志数据';
COMMENT ON COLUMN "BLADE_LOG_USUAL"."METHOD" IS '操作方式'; COMMENT ON COLUMN "BLADE_LOG_USUAL"."METHOD" IS '操作方式';
COMMENT ON COLUMN "BLADE_LOG_USUAL"."REQUEST_URI" IS '请求URI'; COMMENT ON COLUMN "BLADE_LOG_USUAL"."REQUEST_URI" IS '请求URI';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."REMOTE_IP" IS '操作IP地址';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."METHOD_CLASS" IS '方法类';
COMMENT ON COLUMN "BLADE_LOG_ERROR"."METHOD_NAME" IS '方法名';
COMMENT ON COLUMN "BLADE_LOG_USUAL"."USER_AGENT" IS '用户代理'; COMMENT ON COLUMN "BLADE_LOG_USUAL"."USER_AGENT" IS '用户代理';
COMMENT ON COLUMN "BLADE_LOG_USUAL"."PARAMS" IS '操作提交的数据'; COMMENT ON COLUMN "BLADE_LOG_USUAL"."PARAMS" IS '操作提交的数据';
COMMENT ON COLUMN "BLADE_LOG_USUAL"."CREATE_BY" IS '创建者'; COMMENT ON COLUMN "BLADE_LOG_USUAL"."CREATE_BY" IS '创建者';

8
doc/sql/postgresql/bladex-saber-postgresql.sql

@ -336,6 +336,7 @@ CREATE TABLE "blade_log_error" (
"exception_name" varchar(255) COLLATE "pg_catalog"."default", "exception_name" varchar(255) COLLATE "pg_catalog"."default",
"message" text COLLATE "pg_catalog"."default", "message" text COLLATE "pg_catalog"."default",
"line_number" int4, "line_number" int4,
"remote_ip" varchar(255) COLLATE "pg_catalog"."default",
"method_class" varchar(255) COLLATE "pg_catalog"."default", "method_class" varchar(255) COLLATE "pg_catalog"."default",
"file_name" varchar(1000) COLLATE "pg_catalog"."default", "file_name" varchar(1000) COLLATE "pg_catalog"."default",
"method_name" varchar(255) COLLATE "pg_catalog"."default", "method_name" varchar(255) COLLATE "pg_catalog"."default",
@ -357,6 +358,7 @@ COMMENT ON COLUMN "blade_log_error"."stack_trace" IS '堆栈';
COMMENT ON COLUMN "blade_log_error"."exception_name" IS '异常名'; COMMENT ON COLUMN "blade_log_error"."exception_name" IS '异常名';
COMMENT ON COLUMN "blade_log_error"."message" IS '异常信息'; COMMENT ON COLUMN "blade_log_error"."message" IS '异常信息';
COMMENT ON COLUMN "blade_log_error"."line_number" IS '错误行数'; COMMENT ON COLUMN "blade_log_error"."line_number" IS '错误行数';
COMMENT ON COLUMN "blade_log_error"."remote_ip" IS '操作IP地址';
COMMENT ON COLUMN "blade_log_error"."method_class" IS '方法类'; COMMENT ON COLUMN "blade_log_error"."method_class" IS '方法类';
COMMENT ON COLUMN "blade_log_error"."file_name" IS '文件名'; COMMENT ON COLUMN "blade_log_error"."file_name" IS '文件名';
COMMENT ON COLUMN "blade_log_error"."method_name" IS '方法名'; COMMENT ON COLUMN "blade_log_error"."method_name" IS '方法名';
@ -381,6 +383,9 @@ CREATE TABLE "blade_log_usual" (
"log_data" text COLLATE "pg_catalog"."default", "log_data" text COLLATE "pg_catalog"."default",
"method" varchar(10) COLLATE "pg_catalog"."default", "method" varchar(10) COLLATE "pg_catalog"."default",
"request_uri" varchar(255) COLLATE "pg_catalog"."default", "request_uri" varchar(255) COLLATE "pg_catalog"."default",
"remote_ip" varchar(255) COLLATE "pg_catalog"."default",
"method_class" varchar(255) COLLATE "pg_catalog"."default",
"method_name" varchar(255) COLLATE "pg_catalog"."default",
"user_agent" varchar(1000) COLLATE "pg_catalog"."default", "user_agent" varchar(1000) COLLATE "pg_catalog"."default",
"params" text COLLATE "pg_catalog"."default", "params" text COLLATE "pg_catalog"."default",
"create_by" varchar(64) COLLATE "pg_catalog"."default", "create_by" varchar(64) COLLATE "pg_catalog"."default",
@ -398,6 +403,9 @@ COMMENT ON COLUMN "blade_log_usual"."log_id" IS '日志业务id';
COMMENT ON COLUMN "blade_log_usual"."log_data" IS '日志数据'; COMMENT ON COLUMN "blade_log_usual"."log_data" IS '日志数据';
COMMENT ON COLUMN "blade_log_usual"."method" IS '操作方式'; COMMENT ON COLUMN "blade_log_usual"."method" IS '操作方式';
COMMENT ON COLUMN "blade_log_usual"."request_uri" IS '请求URI'; COMMENT ON COLUMN "blade_log_usual"."request_uri" IS '请求URI';
COMMENT ON COLUMN "blade_log_error"."remote_ip" IS '操作IP地址';
COMMENT ON COLUMN "blade_log_error"."method_class" IS '方法类';
COMMENT ON COLUMN "blade_log_error"."method_name" IS '方法名';
COMMENT ON COLUMN "blade_log_usual"."user_agent" IS '用户代理'; COMMENT ON COLUMN "blade_log_usual"."user_agent" IS '用户代理';
COMMENT ON COLUMN "blade_log_usual"."params" IS '操作提交的数据'; COMMENT ON COLUMN "blade_log_usual"."params" IS '操作提交的数据';
COMMENT ON COLUMN "blade_log_usual"."create_by" IS '创建者'; COMMENT ON COLUMN "blade_log_usual"."create_by" IS '创建者';

76
doc/sql/postgresql/bladex-sword-postgresql.sql

@ -324,25 +324,26 @@ COMMENT ON TABLE "blade_log_api" IS '接口日志表';
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS "blade_log_error"; DROP TABLE IF EXISTS "blade_log_error";
CREATE TABLE "blade_log_error" ( CREATE TABLE "blade_log_error" (
"id" int8 NOT NULL, "id" int8 NOT NULL,
"tenant_id" varchar(12) COLLATE "pg_catalog"."default", "tenant_id" varchar(12) COLLATE "pg_catalog"."default",
"service_id" varchar(32) COLLATE "pg_catalog"."default", "service_id" varchar(32) COLLATE "pg_catalog"."default",
"server_host" varchar(255) COLLATE "pg_catalog"."default", "server_host" varchar(255) COLLATE "pg_catalog"."default",
"server_ip" varchar(255) COLLATE "pg_catalog"."default", "server_ip" varchar(255) COLLATE "pg_catalog"."default",
"env" varchar(255) COLLATE "pg_catalog"."default", "env" varchar(255) COLLATE "pg_catalog"."default",
"method" varchar(10) COLLATE "pg_catalog"."default", "method" varchar(10) COLLATE "pg_catalog"."default",
"request_uri" varchar(255) COLLATE "pg_catalog"."default", "request_uri" varchar(255) COLLATE "pg_catalog"."default",
"user_agent" varchar(1000) COLLATE "pg_catalog"."default", "user_agent" varchar(1000) COLLATE "pg_catalog"."default",
"stack_trace" text COLLATE "pg_catalog"."default", "stack_trace" text COLLATE "pg_catalog"."default",
"exception_name" varchar(255) COLLATE "pg_catalog"."default", "exception_name" varchar(255) COLLATE "pg_catalog"."default",
"message" text COLLATE "pg_catalog"."default", "message" text COLLATE "pg_catalog"."default",
"line_number" int4, "line_number" int4,
"method_class" varchar(255) COLLATE "pg_catalog"."default", "remote_ip" varchar(255) COLLATE "pg_catalog"."default",
"file_name" varchar(1000) COLLATE "pg_catalog"."default", "method_class" varchar(255) COLLATE "pg_catalog"."default",
"method_name" varchar(255) COLLATE "pg_catalog"."default", "file_name" varchar(1000) COLLATE "pg_catalog"."default",
"params" text COLLATE "pg_catalog"."default", "method_name" varchar(255) COLLATE "pg_catalog"."default",
"create_by" varchar(64) COLLATE "pg_catalog"."default", "params" text COLLATE "pg_catalog"."default",
"create_time" timestamp(6) "create_by" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6)
) )
; ;
COMMENT ON COLUMN "blade_log_error"."id" IS '编号'; COMMENT ON COLUMN "blade_log_error"."id" IS '编号';
@ -358,6 +359,7 @@ COMMENT ON COLUMN "blade_log_error"."stack_trace" IS '堆栈';
COMMENT ON COLUMN "blade_log_error"."exception_name" IS '异常名'; COMMENT ON COLUMN "blade_log_error"."exception_name" IS '异常名';
COMMENT ON COLUMN "blade_log_error"."message" IS '异常信息'; COMMENT ON COLUMN "blade_log_error"."message" IS '异常信息';
COMMENT ON COLUMN "blade_log_error"."line_number" IS '错误行数'; COMMENT ON COLUMN "blade_log_error"."line_number" IS '错误行数';
COMMENT ON COLUMN "blade_log_error"."remote_ip" IS '操作IP地址';
COMMENT ON COLUMN "blade_log_error"."method_class" IS '方法类'; COMMENT ON COLUMN "blade_log_error"."method_class" IS '方法类';
COMMENT ON COLUMN "blade_log_error"."file_name" IS '文件名'; COMMENT ON COLUMN "blade_log_error"."file_name" IS '文件名';
COMMENT ON COLUMN "blade_log_error"."method_name" IS '方法名'; COMMENT ON COLUMN "blade_log_error"."method_name" IS '方法名';
@ -371,21 +373,24 @@ COMMENT ON TABLE "blade_log_error" IS '错误日志表';
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS "blade_log_usual"; DROP TABLE IF EXISTS "blade_log_usual";
CREATE TABLE "blade_log_usual" ( CREATE TABLE "blade_log_usual" (
"id" int8 NOT NULL, "id" int8 NOT NULL,
"tenant_id" varchar(12) COLLATE "pg_catalog"."default", "tenant_id" varchar(12) COLLATE "pg_catalog"."default",
"service_id" varchar(32) COLLATE "pg_catalog"."default", "service_id" varchar(32) COLLATE "pg_catalog"."default",
"server_host" varchar(255) COLLATE "pg_catalog"."default", "server_host" varchar(255) COLLATE "pg_catalog"."default",
"server_ip" varchar(255) COLLATE "pg_catalog"."default", "server_ip" varchar(255) COLLATE "pg_catalog"."default",
"env" varchar(255) COLLATE "pg_catalog"."default", "env" varchar(255) COLLATE "pg_catalog"."default",
"log_level" varchar(10) COLLATE "pg_catalog"."default", "log_level" varchar(10) COLLATE "pg_catalog"."default",
"log_id" varchar(100) COLLATE "pg_catalog"."default", "log_id" varchar(100) COLLATE "pg_catalog"."default",
"log_data" text COLLATE "pg_catalog"."default", "log_data" text COLLATE "pg_catalog"."default",
"method" varchar(10) COLLATE "pg_catalog"."default", "method" varchar(10) COLLATE "pg_catalog"."default",
"request_uri" varchar(255) COLLATE "pg_catalog"."default", "request_uri" varchar(255) COLLATE "pg_catalog"."default",
"user_agent" varchar(1000) COLLATE "pg_catalog"."default", "remote_ip" varchar(255) COLLATE "pg_catalog"."default",
"params" text COLLATE "pg_catalog"."default", "method_class" varchar(255) COLLATE "pg_catalog"."default",
"create_by" varchar(64) COLLATE "pg_catalog"."default", "method_name" varchar(255) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) "user_agent" varchar(1000) COLLATE "pg_catalog"."default",
"params" text COLLATE "pg_catalog"."default",
"create_by" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6)
) )
; ;
COMMENT ON COLUMN "blade_log_usual"."id" IS '编号'; COMMENT ON COLUMN "blade_log_usual"."id" IS '编号';
@ -399,6 +404,9 @@ COMMENT ON COLUMN "blade_log_usual"."log_id" IS '日志业务id';
COMMENT ON COLUMN "blade_log_usual"."log_data" IS '日志数据'; COMMENT ON COLUMN "blade_log_usual"."log_data" IS '日志数据';
COMMENT ON COLUMN "blade_log_usual"."method" IS '操作方式'; COMMENT ON COLUMN "blade_log_usual"."method" IS '操作方式';
COMMENT ON COLUMN "blade_log_usual"."request_uri" IS '请求URI'; COMMENT ON COLUMN "blade_log_usual"."request_uri" IS '请求URI';
COMMENT ON COLUMN "blade_log_error"."remote_ip" IS '操作IP地址';
COMMENT ON COLUMN "blade_log_error"."method_class" IS '方法类';
COMMENT ON COLUMN "blade_log_error"."method_name" IS '方法名';
COMMENT ON COLUMN "blade_log_usual"."user_agent" IS '用户代理'; COMMENT ON COLUMN "blade_log_usual"."user_agent" IS '用户代理';
COMMENT ON COLUMN "blade_log_usual"."params" IS '操作提交的数据'; COMMENT ON COLUMN "blade_log_usual"."params" IS '操作提交的数据';
COMMENT ON COLUMN "blade_log_usual"."create_by" IS '创建者'; COMMENT ON COLUMN "blade_log_usual"."create_by" IS '创建者';

2
doc/sql/update/mysql-update-2.1.0~2.2.0.sql

@ -1,2 +0,0 @@
ALTER TABLE `blade_dict`
ADD COLUMN `is_sealed` int(2) NULL DEFAULT 0 COMMENT '是否已封存' AFTER `remark`;

7
doc/sql/update/mysql-update-2.2.0~2.2.1.sql

@ -0,0 +1,7 @@
ALTER TABLE `blade_log_error`
ADD COLUMN `remote_ip` varchar(255) NULL COMMENT '操作IP地址' AFTER `line_number`;
ALTER TABLE `blade_log_usual`
ADD COLUMN `remote_ip` varchar(255) NULL COMMENT '操作IP地址' AFTER `request_uri`,
ADD COLUMN `method_class` varchar(255) NULL COMMENT '方法类' AFTER `remote_ip`,
ADD COLUMN `method_name` varchar(255) NULL COMMENT '方法名' AFTER `method_class`;

4
doc/sql/update/oracle-update-2.1.0~2.2.0.sql

@ -1,4 +0,0 @@
ALTER TABLE "BLADEX"."BLADE_DICT"
ADD ("IS_SEALED" NUMBER(11) DEFAULT 0 );
COMMENT ON COLUMN "BLADEX"."BLADE_DICT"."IS_SEAL" IS '是否已封存'

14
doc/sql/update/oracle-update-2.2.0~2.2.1.sql

@ -0,0 +1,14 @@
ALTER TABLE "BLADEX"."BLADE_LOG_ERROR"
ADD ("REMOTE_IP" VARCHAR2(255) );
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."REMOTE_IP" IS '操作IP地址';
ALTER TABLE "BLADEX"."BLADE_LOG_USUAL"
ADD ("REMOTE_IP" VARCHAR2(255) )
ADD ("METHOD_CLASS" VARCHAR2(255) )
ADD ("METHOD_NAME" VARCHAR2(255) );
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."REMOTE_IP" IS '操作IP地址';
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."METHOD_CLASS" IS '方法类';
COMMENT ON COLUMN "BLADEX"."BLADE_LOG_ERROR"."METHOD_NAME" IS '方法名';

4
doc/sql/update/postgresql-update-2.1.0~2.2.0.sql

@ -1,4 +0,0 @@
ALTER TABLE "public"."blade_dict"
ADD COLUMN "is_sealed" int4 DEFAULT 0;
COMMENT ON COLUMN "public"."blade_dict"."is_seal" IS '是否已封存';

14
doc/sql/update/postgresql-update-2.2.0~2.2.1.sql

@ -0,0 +1,14 @@
ALTER TABLE "public"."blade_log_error"
ADD COLUMN "remote_ip" varchar(500);
COMMENT ON COLUMN "public"."blade_dict"."remote_ip" IS '操作IP地址';
ALTER TABLE "public"."blade_log_usual"
ADD COLUMN "remote_ip" varchar(500),
ADD COLUMN "method_class" varchar(500),
ADD COLUMN "method_name" varchar(500);
COMMENT ON COLUMN "public"."blade_dict"."remote_ip" IS '操作IP地址';
COMMENT ON COLUMN "public"."blade_dict"."method_class" IS '方法类';
COMMENT ON COLUMN "public"."blade_dict"."method_name" IS '方法名';
Loading…
Cancel
Save