---
title: "Manage your ClickHouse Schema-as-Code using Atlas"
description: "Atlas, an open-core Database Schema-as-Code tool, now supports ClickHouse, letting engineers declare the desired schema in a SQL file and have the tool inspect the live database, diff it, and generate the DDL migration plan automatically."
url: "https://swe.quest/articles/manage-your-clickhouse-schema-as-code-using-atlas-070df0988d803e6b"
canonical: "https://clickhouse.com/blog/manage-your-clickHouse-schema-as-code-using-atlas"
source: "ClickHouse"
published: "2024-03-12"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["schema-migrations","analytics","infrastructure-as-code","developer-tools"]
---

# Manage your ClickHouse Schema-as-Code using Atlas

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2024-03-12, 5 min read, How-to. Original: [https://clickhouse.com/blog/manage-your-clickHouse-schema-as-code-using-atlas](https://clickhouse.com/blog/manage-your-clickHouse-schema-as-code-using-atlas)

## Summary

Atlas, an open-core Database Schema-as-Code tool, now supports ClickHouse, letting engineers declare the desired schema in a SQL file and have the tool inspect the live database, diff it, and generate the DDL migration plan automatically. Unlike ORM-level migration generators such as Django's, which are tied to one stack and only cover tables, columns and indexes, this declarative approach works generically and can manage objects like views and materialized views. A walkthrough runs ClickHouse in Docker, applies a MergeTree table with \`atlas schema apply\` using a dev database URL, confirms the schema is synced, and then adds a column, which Atlas turns into an ALTER TABLE statement.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Schema migrations](https://swe.quest/tags/schema-migrations.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Infrastructure as code](https://swe.quest/tags/infrastructure-as-code.md) (Infrastructure)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- SQL DDL ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- database migrations ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))
- Docker basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))

## Keywords

Atlas, ClickHouse, MergeTree, Skeema, Docker

## Related posts

- [Declarative Schemas for Simpler Database Management](https://swe.quest/articles/declarative-schemas-for-simpler-database-management-ee2428d0ae8c51e8.md): Supabase · 2025-04-03 · Medium · 4 min read · Schema migrations, PostgreSQL, Developer tools
  Supabase CLI now supports declarative schemas: the desired final state of Postgres tables, views, functions, RLS policies, grants and types lives in versioned .sql files, and a schema diff tool such as migra generates the migration files.
- [clickhouse.build: An agentic CLI to accelerate Postgres apps with ClickHouse](https://swe.quest/articles/clickhouse-build-an-agentic-cli-to-accelerate-postgres-apps-with-clickhouse-a4f92c15e2d9b3be.md): ClickHouse · 2025-12-02 · Medium · 9 min read · AI agents, Analytics & OLAP, PostgreSQL, TypeScript, AI for coding
  clickhouse.build is an open source agentic CLI that adds ClickHouse to Postgres-backed TypeScript apps for analytical queries while leaving transactional work in Postgres.
- [The official ClickHouse provider for Apache Airflow is now available](https://swe.quest/articles/the-official-clickhouse-provider-for-apache-airflow-is-now-available-0798cbf24bb9fe40.md): ClickHouse · 2026-09-17 · Medium · 6 min read · Data pipelines, Analytics & OLAP, Python
  Apache Airflow now ships an official upstream ClickHouse provider, apache-airflow-providers-clickhousedb, built on the clickhouse-connect Python client over HTTP(S).
- [What's new in ClickStack. July '25.](https://swe.quest/articles/what-s-new-in-clickstack-july-25-b30443e4bbdf085a.md): ClickHouse · 2025-07-07 · Medium · 11 min read · Observability, Analytics & OLAP, Schema migrations, Performance engineering
  ClickStack, ClickHouse's open-source observability stack, adds beta support for ClickHouse's native JSON column type for OpenTelemetry attribute columns in place of Map.
- [ClickHouse and dbt - A Gift from the Community](https://swe.quest/articles/clickhouse-and-dbt-a-gift-from-the-community-edc7ddee62ee1cfc.md): ClickHouse · 2023-02-01 · Medium · 7 min read · Analytics & OLAP, Data pipelines, Open source
  The dbt-clickhouse adapter, started by community contributor Dmitriy Sokolov and later taken over as a vendor-supported plugin, maps dbt's view, table, incremental and ephemeral materializations onto ClickHouse features.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
