mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
5fad4f6204
Before it fails to create due to "metadata" directory had not been created, since metadata_path is different for Atomic database, see InterpreterCreateQuery.cpp.
13 lines
305 B
Bash
Executable File
13 lines
305 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
# shellcheck source=../shell_config.sh
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
for Engine in Atomic Ordinary; do
|
|
$CLICKHOUSE_LOCAL --query """
|
|
CREATE DATABASE foo_$Engine Engine=$Engine;
|
|
DROP DATABASE foo_$Engine;
|
|
"""
|
|
done
|