-
|
I wanted to ask why are down commands not supported? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi @Zevrap-81 — good timing. The plan: drop an optional Note: for a failed migration you often don't even need |
Beta Was this translation helpful? Give feedback.
-
|
Shipped in v0.13.0 🎉
It stays deliberately naive — reversible changes roll back cleanly, destructive ones (data-losing drops, Thanks for the nudge, @Zevrap-81 — this had been declined before (#36) and your question tipped it over. |
Beta Was this translation helpful? Give feedback.
Shipped in v0.13.0 🎉
pip install -U clickhouse-migrations, add an optional{VERSION}_{name}.down.sqlnext to your migration, and runclickhouse-migrations down(--steps N/--to VERSION/--dry-run). Docs: the Rollbacks section in the README.It stays deliberately naive — reversible changes roll back cleanly, destructive ones (data-losing drops,
ALTER … DELETE/UPDATEmutations) are your responsibility, since ClickHouse has no transactional DDL.Thanks for the nudge, @Zevrap-81 — this had been declined before (#36) and your question tipped it over.