1
0
mirror of https://github.com/netsampler/goflow2.git synced 2024-05-06 15:54:52 +00:00

Merge pull request #23 from s-chekanov/fix_db_start

Fix clickhouse startup after restart
This commit is contained in:
Louis
2021-08-02 07:38:41 -07:00
committed by GitHub

View File

@ -3,9 +3,9 @@ set -e
clickhouse client -n <<-EOSQL
CREATE DATABASE dictionaries;
CREATE DATABASE IF NOT EXISTS dictionaries;
CREATE DICTIONARY dictionaries.protocols (
CREATE DICTIONARY IF NOT EXISTS dictionaries.protocols (
proto UInt8,
name String,
description String
@ -122,4 +122,4 @@ clickhouse client -n <<-EOSQL
FROM flows_raw
GROUP BY Date, Timeslot, SrcAS, DstAS, \`ETypeMap.EType\`;
EOSQL
EOSQL