From cd84ed312e6136f5215d0186a512f7065dfd8eef Mon Sep 17 00:00:00 2001 From: houjinchuan Date: Fri, 2 Dec 2022 16:26:30 +0800 Subject: [PATCH] =?UTF-8?q?TSG=20CK=2022.12=E6=96=B0=E5=A2=9Ecommon=5Fflag?= =?UTF-8?q?s=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Clickhouse_TSG_建表语句.sql | 27 ++++++++++++++ .../TSG-22.12/clickhouse/update-22.12-ck.sql | 37 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 TSG发布版本更新记录/TSG-22.12/clickhouse/update-22.12-ck.sql diff --git a/Clickhouse最新全量建表语句/Clickhouse_TSG_建表语句.sql b/Clickhouse最新全量建表语句/Clickhouse_TSG_建表语句.sql index b8840d4..98796d8 100644 --- a/Clickhouse最新全量建表语句/Clickhouse_TSG_建表语句.sql +++ b/Clickhouse最新全量建表语句/Clickhouse_TSG_建表语句.sql @@ -194,6 +194,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.gtpc_record_local ON CLUSTER ck_cluster common_schema_type String, common_vsys_id Int64 DEFAULT 1, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -300,6 +301,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.gtpc_record ON CLUSTER ck_cluster( common_schema_type String, common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -401,6 +403,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.gtpc_record ON CLUSTER ck_query( common_schema_type String, common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -503,6 +506,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record_local ON CLUSTER common_schema_type LowCardinality(String), common_vsys_id Int64 DEFAULT 1, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -759,6 +763,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record_local ON CLUSTER ck_ common_schema_type LowCardinality(String), common_vsys_id Int64 DEFAULT 1, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -920,6 +925,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_qu common_schema_type LowCardinality(String), common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -1172,6 +1178,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.interim_session_record ON CLUSTER ck_cl common_schema_type LowCardinality(String), common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -1425,6 +1432,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record ON CLUSTER ck_query( common_schema_type LowCardinality(String), common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -1580,6 +1588,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.transaction_record ON CLUSTER ck_cluste common_schema_type LowCardinality(String), common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -1738,6 +1747,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.voip_record_local ON CLUSTER ck_cluster common_schema_type String, common_vsys_id Int64 DEFAULT 1, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -1850,6 +1860,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.voip_record ON CLUSTER ck_query( common_schema_type String, common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -1960,6 +1971,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.voip_record ON CLUSTER ck_cluster( common_schema_type String, common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -2070,6 +2082,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.sys_packet_capture_event_local ON CLUST common_schema_type String, common_vsys_id Int64 DEFAULT 1, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -2171,6 +2184,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.security_event_local ON CLUSTER ck_clus common_schema_type String, common_vsys_id Int64 DEFAULT 1, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -2426,6 +2440,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.proxy_event_local ON CLUSTER ck_cluster common_schema_type String, common_vsys_id Int64 DEFAULT 1, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -2595,6 +2610,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.session_record_local ON CLUSTER ck_clus common_schema_type LowCardinality(String), common_vsys_id Int64 DEFAULT 1, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -2850,6 +2866,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.radius_record_local ON CLUSTER ck_clust common_schema_type String, common_vsys_id Int64 DEFAULT 1, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -3056,6 +3073,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.radius_record ON CLUSTER ck_query ( common_schema_type String, common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -3175,6 +3193,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_query ( common_schema_type LowCardinality(String), common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -3427,6 +3446,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.proxy_event ON CLUSTER ck_query ( common_schema_type String, common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -3592,6 +3612,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_query ( common_schema_type String, common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -3844,6 +3865,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.sys_packet_capture_event ON CLUSTER ck_ common_schema_type String, common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -3954,6 +3976,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.radius_record ON CLUSTER ck_cluster ( common_schema_type String, common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -4073,6 +4096,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.session_record ON CLUSTER ck_cluster ( common_schema_type LowCardinality(String), common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -4325,6 +4349,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.proxy_event ON CLUSTER ck_cluster ( common_schema_type String, common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -4490,6 +4515,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.security_event ON CLUSTER ck_cluster ( common_schema_type String, common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, @@ -4742,6 +4768,7 @@ create table IF NOT EXISTS tsg_galaxy_v3.sys_packet_capture_event ON CLUSTER ck_ common_schema_type String, common_vsys_id Int64, common_t_vsys_id Int64, + common_flags UInt64, common_device_tag String, common_encapsulation Int64, common_tunnels String, diff --git a/TSG发布版本更新记录/TSG-22.12/clickhouse/update-22.12-ck.sql b/TSG发布版本更新记录/TSG-22.12/clickhouse/update-22.12-ck.sql new file mode 100644 index 0000000..e7b3415 --- /dev/null +++ b/TSG发布版本更新记录/TSG-22.12/clickhouse/update-22.12-ck.sql @@ -0,0 +1,37 @@ +set distributed_ddl_task_timeout = 180; + +ALTER table tsg_galaxy_v3.session_record_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.session_record on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.session_record on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; + +ALTER table tsg_galaxy_v3.interim_session_record_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.interim_session_record on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.interim_session_record on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; + +ALTER table tsg_galaxy_v3.transaction_record_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.transaction_record on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.transaction_record on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; + +ALTER table tsg_galaxy_v3.security_event_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.security_event on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.security_event on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; + +ALTER table tsg_galaxy_v3.proxy_event_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.proxy_event on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.proxy_event on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; + +ALTER table tsg_galaxy_v3.radius_record_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.radius_record on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.radius_record on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; + +ALTER table tsg_galaxy_v3.voip_record_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.voip_record on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.voip_record on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; + +ALTER table tsg_galaxy_v3.gtpc_record_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.gtpc_record on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.gtpc_record on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; + +ALTER table tsg_galaxy_v3.sys_packet_capture_event_local on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.sys_packet_capture_event on cluster ck_cluster add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; +ALTER table tsg_galaxy_v3.sys_packet_capture_event on cluster ck_query add column IF NOT EXISTS common_flags UInt64 after common_t_vsys_id; \ No newline at end of file