feature(clickhouse): added replicated and distributed tables

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-12-02 20:00:48 +01:00
parent 83a3618a76
commit e1e2d7e43e
2 changed files with 356 additions and 5 deletions

View File

@@ -1,13 +1,15 @@
#!/bin/bash
if [ -z "$CLICKHOUSE_URL" ]; then
echo "CLICKHOUSE_URL is not set"
if [ -n "$CLICKHOUSE_URL_DIRECT" ]; then
export GOOSE_DBSTRING=$CLICKHOUSE_URL_DIRECT
elif [ -z "$CLICKHOUSE_URL" ]; then
echo "Neither CLICKHOUSE_URL_DIRECT nor CLICKHOUSE_URL is set"
exit 1
else
export GOOSE_DBSTRING=$CLICKHOUSE_URL
fi
export GOOSE_DBSTRING=$CLICKHOUSE_URL
echo "Clickhouse migration script"
echo ""
echo "================="
@@ -23,5 +25,4 @@ if [ "$1" != "create" ] && [ -z "$CI" ]; then
fi
fi
goose clickhouse --dir ./migrations $@