mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Restore SRC_NETWORK_ID DST_NETWORK_ID data type to UInt16 for the time being
This commit is contained in:
parent
d25e23a599
commit
1eab4beac5
2 changed files with 12 additions and 12 deletions
|
|
@ -44,8 +44,8 @@ CREATE TABLE IF NOT EXISTS `flows` (
|
|||
`SERVER_NW_LATENCY_US` UInt32,
|
||||
`CLIENT_LOCATION` UInt8,
|
||||
`SERVER_LOCATION` UInt8,
|
||||
`SRC_NETWORK_ID` UInt32,
|
||||
`DST_NETWORK_ID` UInt32,
|
||||
`SRC_NETWORK_ID` UInt16,
|
||||
`DST_NETWORK_ID` UInt16,
|
||||
`INPUT_SNMP` UInt32,
|
||||
`OUTPUT_SNMP` UInt32,
|
||||
`SRC_HOST_POOL_ID` UInt16,
|
||||
|
|
@ -66,9 +66,9 @@ ALTER TABLE flows ADD COLUMN IF NOT EXISTS `CLIENT_LOCATION` UInt8;
|
|||
@
|
||||
ALTER TABLE flows ADD COLUMN IF NOT EXISTS `SERVER_LOCATION` UInt8;
|
||||
@
|
||||
ALTER TABLE flows ADD COLUMN IF NOT EXISTS `SRC_NETWORK_ID` UInt32;
|
||||
ALTER TABLE flows ADD COLUMN IF NOT EXISTS `SRC_NETWORK_ID` UInt16;
|
||||
@
|
||||
ALTER TABLE flows ADD COLUMN IF NOT EXISTS `DST_NETWORK_ID` UInt32;
|
||||
ALTER TABLE flows ADD COLUMN IF NOT EXISTS `DST_NETWORK_ID` UInt16;
|
||||
@
|
||||
ALTER TABLE flows ADD COLUMN IF NOT EXISTS `INPUT_SNMP` UInt32;
|
||||
@
|
||||
|
|
@ -511,8 +511,8 @@ CREATE TABLE IF NOT EXISTS `hourly_flows` (
|
|||
`DST_ASN` UInt32,
|
||||
`INPUT_SNMP` UInt32,
|
||||
`OUTPUT_SNMP` UInt32,
|
||||
`SRC_NETWORK_ID` UInt32,
|
||||
`DST_NETWORK_ID` UInt32
|
||||
`SRC_NETWORK_ID` UInt16,
|
||||
`DST_NETWORK_ID` UInt16
|
||||
) ENGINE = MergeTree() PARTITION BY toYYYYMMDD(FIRST_SEEN) ORDER BY (IPV4_SRC_ADDR, IPV4_DST_ADDR, FIRST_SEEN);
|
||||
@
|
||||
ALTER TABLE `hourly_flows` ADD COLUMN IF NOT EXISTS SRC_LABEL String;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue