Files
HellreigN/infra/clickhouse/init/01_create_logs_table.sh
T
d3m0k1d 5c67c0287e
ci-agent / build (push) Failing after 1m24s
chore: add docker compose for local tests
2026-04-04 01:37:33 +03:00

17 lines
363 B
Bash

#!/bin/bash
set -e
clickhouse-client --query "CREATE DATABASE IF NOT EXISTS hellreign;"
clickhouse-client --query "
CREATE TABLE IF NOT EXISTS hellreign.logs (
timestamp DateTime64(3) DEFAULT now(),
level String,
service String,
message String,
host String,
trace_id String
) ENGINE = MergeTree()
ORDER BY (timestamp, service, level);
"