mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Updated DB asset schema
Fixed URL in host details
This commit is contained in:
parent
486dc0e33e
commit
cb03021f4e
4 changed files with 23 additions and 5 deletions
|
|
@ -787,9 +787,15 @@ CREATE TABLE IF NOT EXISTS `assets` (
|
|||
`last_seen` DateTime NOT NULL,
|
||||
`gateway_mac` String NULL,
|
||||
`json_info` String NULL, -- A json containing all other info
|
||||
`version` UInt64 -- Used to not have duplicates
|
||||
`version` UInt64, -- Used to not have duplicates
|
||||
`os_type` String NULL,
|
||||
`model` String NULL
|
||||
) ENGINE = ReplacingMergeTree(version) PRIMARY KEY (`type`, `key`) ORDER BY (`type`, `key`);
|
||||
@
|
||||
ALTER TABLE assets ADD COLUMN IF NOT EXISTS `os_type` String;
|
||||
@
|
||||
ALTER TABLE assets ADD COLUMN IF NOT EXISTS `model` String;
|
||||
@
|
||||
|
||||
/* VIEWS */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue