Authored by wangnan

Update 20161201 upgrade.md

1 -# 1. DB部分  
2 -将搜索库的yhb_search.es_word_def表数据拷贝到yhb_operation的schema去 1 +# 1. DB部分
  2 +将搜索库的yhb_search.es_word_def表数据拷贝到yhb_operation的schema去
3 3
4 4
5 -# 2. Canal部分  
6 -## 2.1 增加监听yhb_operation.es_word_def表 5 +# 2. Canal部分
  6 +## 2.1 增加监听yhb_operation.es_word_def表
7 7
8 vi /opt/canal.deployer-1.0.20/conf/operations/instance.properties 8 vi /opt/canal.deployer-1.0.20/conf/operations/instance.properties
9 canal.instance.filter.regex = yhb_operations.activity_product,yhb_operations.es_word_def 9 canal.instance.filter.regex = yhb_operations.activity_product,yhb_operations.es_word_def
10 10
11 -## 2.2 增加监听yh_shops.product_price_plan表 11 +## 2.2 增加监听yh_shops.product_price_plan表
12 12
13 vi /opt/canal.deployer-1.0.20/conf/shops/instance.properties 13 vi /opt/canal.deployer-1.0.20/conf/shops/instance.properties
14 canal.instance.filter.regex=yh_shops.brand,yh_shops.goods,yh_shops.goods_images,yh_shops.product,yh_shops.product_color,yh_shops.product_price,yh_shops.product_sort,yh_shops.product_standard_relation,yh_shops.product_style_relation,yh_shops.size,yh_shops.storage,yh_shops.standard,yh_shops.style,yh_shops.product_activities_link,yh_shops.product_search,yh_shops.parameter_make,yh_shops.search_action,yh_shops.product_keywords,yh_shops.product_price_plan 14 canal.instance.filter.regex=yh_shops.brand,yh_shops.goods,yh_shops.goods_images,yh_shops.product,yh_shops.product_color,yh_shops.product_price,yh_shops.product_sort,yh_shops.product_standard_relation,yh_shops.product_style_relation,yh_shops.size,yh_shops.storage,yh_shops.standard,yh_shops.style,yh_shops.product_activities_link,yh_shops.product_search,yh_shops.parameter_make,yh_shops.search_action,yh_shops.product_keywords,yh_shops.product_price_plan
15 15
16 -## 2.3 增加监听机器人问答的问题表 16 +## 2.3 增加监听机器人问答的问题表
17 17
18 vi /opt/canal.deployer-1.0.20/conf/canal.properties 18 vi /opt/canal.deployer-1.0.20/conf/canal.properties
19 canal.destinations = shops,operations,erpproduct,erpcustomerservice 19 canal.destinations = shops,operations,erpproduct,erpcustomerservice
@@ -47,16 +47,16 @@ @@ -47,16 +47,16 @@
47 canal.instance.filter.black.regex = 47 canal.instance.filter.black.regex =
48 ################################################# 48 #################################################
49 49
50 -## 2.4 重启Canal 50 +## 2.4 重启Canal
51 sh /opt/canal.deployer-1.0.20/bin/stop.sh 51 sh /opt/canal.deployer-1.0.20/bin/stop.sh
52 sh /opt/canal.deployer-1.0.20/bin/startup.sh 52 sh /opt/canal.deployer-1.0.20/bin/startup.sh
53 53
54 -# 3. ES部分 54 +# 3. ES部分
55 55
56 56
57 57
58 -# 4. autoconfig配置部分  
59 -## 4.1 consumer增加suggest相关参数 58 +# 4. autoconfig配置部分
  59 +## 4.1 consumer增加suggest相关参数
60 60
61 #suggestion count config 61 #suggestion count config
62 suggestion.count.batch.limit=300 62 suggestion.count.batch.limit=300
@@ -64,4 +64,31 @@ sh /opt/canal.deployer-1.0.20/bin/startup.sh @@ -64,4 +64,31 @@ sh /opt/canal.deployer-1.0.20/bin/startup.sh
64 64
65 65
66 66
67 -# 5. 其他 67 +# 5. 其他
  68 +机器人sql
  69 +
  70 +SET FOREIGN_KEY_CHECKS=0;
  71 +
  72 +-- ----------------------------
  73 +-- Table structure for robot_question
  74 +-- ----------------------------
  75 +DROP TABLE IF EXISTS `robot_question`;
  76 +CREATE TABLE `robot_question` (
  77 + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  78 + `sort_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
  79 + `question` varchar(255) NOT NULL COMMENT '问题',
  80 + `answer` text NOT NULL COMMENT '答案',
  81 + `pid` int(11) NOT NULL DEFAULT '0' COMMENT '创建人',
  82 + `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  83 + `is_disable` int(11) NOT NULL DEFAULT '2' COMMENT '是否禁用 1为是 2为否',
  84 + `effect_time` int(11) NOT NULL DEFAULT '0' COMMENT '生效时间',
  85 + `update_pid` int(11) NOT NULL DEFAULT '0' COMMENT '修改人',
  86 + `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
  87 + `question_seq` int(11) NOT NULL DEFAULT '0' COMMENT '显示顺序',
  88 + `click_times` int(11) NOT NULL DEFAULT '0' COMMENT '点击次数',
  89 + PRIMARY KEY (`id`)
  90 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  91 +
  92 +-- ----------------------------
  93 +-- Records of robot_question
  94 +-- ----------------------------