Modified SNMP alerts table

This commit is contained in:
Luca Deri 2023-06-07 16:13:31 +02:00
parent 11ff3db6c8
commit 2d90099c1e
2 changed files with 10 additions and 2 deletions

View file

@ -325,7 +325,7 @@ CREATE TABLE IF NOT EXISTS `snmp_alerts` ON CLUSTER '$CLUSTER' (
`alert_status` UInt8 NOT NULL,
`interface_id` UInt16 NULL,
`ip` String NOT NULL,
`port` UInt16,
`port` UInt32,
`name` String,
`port_name` String,
`tstamp` DateTime NOT NULL,
@ -342,6 +342,10 @@ CREATE TABLE IF NOT EXISTS `snmp_alerts` ON CLUSTER '$CLUSTER' (
@
ALTER TABLE `snmp_alerts` MODIFY COLUMN `port` UInt32;
@
CREATE TABLE IF NOT EXISTS `network_alerts` ON CLUSTER '$CLUSTER' (
`rowid` UUID,
`local_network_id` UInt16 NOT NULL,