23.04 TSG CK dos_event表增加profile_id字段

This commit is contained in:
houjinchuan
2023-04-04 09:58:23 +08:00
parent 4a961943da
commit 830be7cb5d
3 changed files with 12 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ ENGINE = Distributed('ck_cluster',
CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event_local ON CLUSTER ck_cluster(
log_id UInt64,
profile_id UInt64,
start_time Int64,
end_time Int64,
attack_type String,
@@ -83,6 +84,7 @@ SETTINGS index_granularity = 8192;
CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event ON CLUSTER ck_cluster(
log_id UInt64,
profile_id UInt64,
start_time Int64,
end_time Int64,
attack_type String,
@@ -100,6 +102,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event ON CLUSTER ck_cluster(
CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event ON CLUSTER ck_query(
log_id UInt64,
profile_id UInt64,
start_time Int64,
end_time Int64,
attack_type String,

View File

@@ -61,6 +61,7 @@ ENGINE = Distributed('ck_cluster',
CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event_local ON CLUSTER ck_cluster(
log_id UInt64,
profile_id UInt64,
start_time Int64,
end_time Int64,
attack_type String,
@@ -81,6 +82,7 @@ SETTINGS index_granularity = 8192;
CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event ON CLUSTER ck_cluster(
log_id UInt64,
profile_id UInt64,
start_time Int64,
end_time Int64,
attack_type String,
@@ -98,6 +100,7 @@ CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event ON CLUSTER ck_cluster(
CREATE TABLE IF NOT EXISTS tsg_galaxy_v3.dos_event ON CLUSTER ck_query(
log_id UInt64,
profile_id UInt64,
start_time Int64,
end_time Int64,
attack_type String,

View File

@@ -0,0 +1,6 @@
set distributed_ddl_task_timeout = 180;
ALTER table tsg_galaxy_v3.dos_event_local on cluster ck_cluster add column IF NOT EXISTS profile_id UInt64 after log_id;
ALTER table tsg_galaxy_v3.dos_event on cluster ck_cluster add column IF NOT EXISTS profile_id UInt64 after log_id;
ALTER table tsg_galaxy_v3.dos_event on cluster ck_query add column IF NOT EXISTS profile_id UInt64 after log_id;