From 7bf6d59865091b4ede5191e88b35d810eadf034d Mon Sep 17 00:00:00 2001 From: renkaige Date: Wed, 16 Jan 2019 11:15:39 +0600 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9traffic=5Fport=5Factive=5Fsta?= =?UTF-8?q?tistic=E8=A1=A8=E6=B7=BB=E5=8A=A0trans=5Fproto=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/init/galaxy_stru_mysql.sql | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/db/init/galaxy_stru_mysql.sql b/db/init/galaxy_stru_mysql.sql index 4778f9f..5cdb2ca 100644 --- a/db/init/galaxy_stru_mysql.sql +++ b/db/init/galaxy_stru_mysql.sql @@ -1115,13 +1115,14 @@ CREATE TABLE `traffic_netflow_port_info` ( /*Table structure for table `traffic_port_active_statistic` */ - CREATE TABLE `traffic_port_active_statistic` ( - `stat_id` bigint(20) NOT NULL AUTO_INCREMENT, - `port` int(11) NOT NULL, - `sum` bigint(20) NOT NULL, - `stat_time` datetime NOT NULL, - PRIMARY KEY (`stat_id`) + `stat_id` bigint(20) NOT NULL AUTO_INCREMENT , + `port` int(11) NOT NULL , + `sum` bigint(20) NOT NULL , + `stat_time` datetime NOT NULL , + `trans_proto` int(11) NOT NULL COMMENT '6-TCP 17-UDP' , + PRIMARY KEY (`stat_id`, `stat_time`), + INDEX `IDX_TRAFFIC_PORT_STAT_TIME` (`stat_time`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; /*Table structure for table `traffic_protocol_statistic` */