zifter/ClickHouse Migrations

Apply file-based schema migrations to ClickHouse from a directory of .sql files.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
migrations-dirPath to the directory with migration filesno./migrations
db-urlClickHouse connection URL (clickhouse://user:password@host:port/db). Takes precedence over the individual db-* inputs.no""
db-hostClickHouse hostnolocalhost
db-portClickHouse port. Leave empty to use the driver default (9000 for clickhouse-driver, 8123 for clickhouse-connect).no""
db-userClickHouse usernodefault
db-passwordClickHouse passwordno""
db-nameClickHouse database nameno""
cluster-nameClickHouse cluster name (for ON CLUSTER / replicated deployments)no""
driverClickHouse driver: 'clickhouse-driver' (native TCP) or 'clickhouse-connect' (official HTTP). Both are bundled; db-url is clickhouse-driver only.noclickhouse-driver
extra-argsAdditional raw CLI arguments, e.g. '--dry-run --secure --create-db-if-not-exists'no""
versionVersion of clickhouse-migrations to install from PyPI (defaults to the latest)no""
python-versionPython version used to run the toolno3.13

no outputs