From 1272c9425a8beedf09431c303d4dd9889fa5b3d0 Mon Sep 17 00:00:00 2001 From: Aliaksei Sanikovich Date: Thu, 26 Sep 2024 21:47:01 +0200 Subject: [PATCH] Add column comment (#72) --- src/ClickHouseSchemaManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClickHouseSchemaManager.php b/src/ClickHouseSchemaManager.php index efc6f9a..729c9f7 100644 --- a/src/ClickHouseSchemaManager.php +++ b/src/ClickHouseSchemaManager.php @@ -140,7 +140,7 @@ protected function _getPortableTableColumnDefinition(array $tableColumn): Column 'default' => $default, 'notnull' => $notnull, 'autoincrement' => false, - 'comment' => '', + 'comment' => $tableColumn['comment'] ?? null, ]; return new Column(