• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

plausible / ecto_ch / 4d43ff3460a53c8e57a2df8b2b31e459647bd402
88%

Build:
DEFAULT BRANCH: master
Ran 30 May 2026 02:56PM UTC
Jobs 1
Files 12
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 May 2026 02:55PM UTC coverage: 88.41% (+0.03%) from 88.377%
4d43ff3460a53c8e57a2df8b2b31e459647bd402

push

github

web-flow
Support :comment column option in migrations (#282)

* Support :comment column option in migrations

The Ecto migration DSL allows a `:comment` option. ClickHouse fully supports column
comments, but the adapter previously honored only the table-level comment and
the `:default`/`:null` column options, silently dropping `:comment`.

This wires a `comment_expr/1` helper into `column_options/2` (used by CREATE
TABLE and ADD COLUMN) and into the `:modify` clause of `column_change/2`
(MODIFY COLUMN). The comment is emitted as an inline `COMMENT '...'` suffix
after the type and any DEFAULT/NULL expressions, matching ClickHouse syntax.

Single quotes in the comment are escaped via `Connection.escape_string/1`
(the same helper used for string DEFAULT literals), producing valid SQL.
Output is unchanged when `:comment` is absent.

* Apply suggestion from @ruslandoga

---------

Co-authored-by: ruslandoga <ruslandoga+gh@icloud.com>

3 of 3 new or added lines in 1 file covered. (100.0%)

923 of 1044 relevant lines covered (88.41%)

647.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4d43ff3460a53c8e57a2df8b2b31e459647bd402.1 30 May 2026 02:56PM UTC 12
88.41
GitHub Action Run
Source Files on build 4d43ff3460a53c8e57a2df8b2b31e459647bd402
  • Tree
  • List 12
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4d43ff34 on github
  • Prev Build on master (#6EB21FAB...)
  • Next Build on master (#2C8DBF6D...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc