Custom table name
You can override the table name in config:Custom replication path
In clustered setups you can override the migrations table replication path used byReplicatedReplacingMergeTree(...):
Summary
Ifenv.cluster_name is set, clisma treats the environment as clustered and creates the migrations table using ReplicatedReplacingMergeTree(...) with ON CLUSTER "<cluster_name>".
If cluster_name is not set in config and ClickHouse reports configured clusters, clisma stops and asks you to set cluster_name. If there are no clusters, it uses ReplacingMergeTree() in standalone mode.
Does clisma support down migrations?
No. This is intentional. ClickHouse DDL and data changes are often non-transactional and may be irreversible. Reliable rollbacks are hard to guarantee and can introduce more risk than they remove. The expected workflow is to apply new forward migrations that correct or compensate for previous changes.Does clisma support multi-statement migrations?
Yes. You can include multiple SQL statements in one file. Separate statements with semicolons; clisma splits them outside of strings and comments.Checksum mismatch
If a migration file changes after being applied, clisma will fail with a checksum mismatch. You have two options:- Revert the migration file back to the applied version and create a new forward migration.
- If you really need to override the checksum, update the stored checksum in the migrations table (use
clisma checksum <migration path>). This is risky and should only be done if you fully understand the consequences.