From fbdae196f8e31ec274f2e0f758c2b38d211d8e51 Mon Sep 17 00:00:00 2001 From: zhangwenqing Date: Sun, 19 Aug 2018 10:42:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=96=B0=E5=A2=9E=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E6=95=B0=E6=8D=AEsql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/sql/function_region_dict_add_colunm.sql | 5 +++++ src/main/resources/sql/function_service_dict_add_colunm.sql | 1 + 2 files changed, 6 insertions(+) create mode 100644 src/main/resources/sql/function_service_dict_add_colunm.sql diff --git a/src/main/resources/sql/function_region_dict_add_colunm.sql b/src/main/resources/sql/function_region_dict_add_colunm.sql index de8461445..38ad24757 100644 --- a/src/main/resources/sql/function_region_dict_add_colunm.sql +++ b/src/main/resources/sql/function_region_dict_add_colunm.sql @@ -2,3 +2,8 @@ alter table function_region_dict add config_multi_keywords varchar(2) COMMENT ' alter table function_region_dict add config_hex varchar(20) COMMENT '十六进制 单选:0 非十六进制 大小不敏感 1 十六进制,大小写不敏感 2非十六进制 大小写敏感 默认为0'; alter table function_region_dict add config_expr_type varchar(20) COMMENT '是否表达式 :单选 0 无表达式 1表达式 默认为0'; alter table function_region_dict add config_match_method varchar(20) COMMENT '匹配方式 下拉 0:子串匹配;1:右匹配;2:左匹配;3:完全匹配 默认为0 expr_type:0时有意义,其它情况必须置0。'; + +INSERT INTO function_region_dict (`dict_id`, `function_id`, `config_region_code`, `config_region_value`, `config_district`, `config_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `is_maat`, `region_type`, `config_multi_keywords`, `config_hex`, `config_expr_type`, `config_match_method`) VALUES ('158', '510', '3', 'NTC_P2P_KEYWORDS', '', 'p2p文件内容配置', '1', NULL, NULL, NULL, NULL, '1', '2', '1', '0,1,2', '0,1', '0,1,2,3'); +INSERT INTO function_region_dict (`dict_id`, `function_id`, `config_region_code`, `config_region_value`, `config_district`, `config_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `is_maat`, `region_type`, `config_multi_keywords`, `config_hex`, `config_expr_type`, `config_match_method`) VALUES ('159', '510', '2', 'NTC_SUBSCRIBE_ID', '', 'p2p subscribe配置', '1', NULL, NULL, NULL, NULL, '1', '2', '1', '0,1,2', '0,1', '0,1,2,3'); +INSERT INTO function_region_dict (`dict_id`, `function_id`, `config_region_code`, `config_region_value`, `config_district`, `config_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `is_maat`, `region_type`, `config_multi_keywords`, `config_hex`, `config_expr_type`, `config_match_method`) VALUES ('160', '510', '1', 'NTC_P2P_HASH_BIN', NULL, 'p2p hash配置', '1', NULL, NULL, NULL, NULL, '1', '2', '1', '1', '0,1', '0,1,2,3'); +INSERT INTO function_region_dict (`dict_id`, `function_id`, `config_region_code`, `config_region_value`, `config_district`, `config_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `is_maat`, `region_type`, `config_multi_keywords`, `config_hex`, `config_expr_type`, `config_match_method`) VALUES ('163', '510', '4', 'NTC_P2P_IP', NULL, 'p2p ip配置', '1', NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, NULL); diff --git a/src/main/resources/sql/function_service_dict_add_colunm.sql b/src/main/resources/sql/function_service_dict_add_colunm.sql new file mode 100644 index 000000000..9612b5ea3 --- /dev/null +++ b/src/main/resources/sql/function_service_dict_add_colunm.sql @@ -0,0 +1 @@ +INSERT INTO function_service_dict (`dict_id`, `function_id`, `protocol_id`, `action`, `action_code`, `service_id`, `service_name`, `service_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`) VALUES ('101', '510', '0', '16', 'reject', '34', 'p2p_reject', NULL, '1', NULL, NULL, NULL, NULL);