mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Fix asset definition on CH cluster
This commit is contained in:
parent
23f1250451
commit
7436a0385b
1 changed files with 2 additions and 2 deletions
|
|
@ -814,7 +814,7 @@ CREATE TABLE IF NOT EXISTS `mitre_table_info` ON CLUSTER '$CLUSTER' (
|
|||
|
||||
/* ASSET */
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `assets` (
|
||||
CREATE TABLE IF NOT EXISTS `assets` ON CLUSTER '$CLUSTER' (
|
||||
`type` String,
|
||||
`key` String,
|
||||
`ifid` UInt8,
|
||||
|
|
@ -832,7 +832,7 @@ CREATE TABLE IF NOT EXISTS `assets` (
|
|||
`version` UInt64, -- Used to not have duplicates
|
||||
`os_type` String DEFAULT '',
|
||||
`model` String DEFAULT ''
|
||||
) ENGINE = ReplacingMergeTree(version) PRIMARY KEY (`type`, `key`) ORDER BY (`type`, `key`);
|
||||
) ENGINE = ReplicatedReplacingMergeTree('/clickhouse/{cluster}/tables/{database}/{table}', '{replica}', version) PRIMARY KEY (`type`, `key`) ORDER BY (`type`, `key`);
|
||||
@
|
||||
ALTER TABLE assets ADD COLUMN IF NOT EXISTS `os_type` String;
|
||||
@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue