diff --git a/src/ClickHouseSchemaManager.php b/src/ClickHouseSchemaManager.php index 5607c31..0fedfb7 100644 --- a/src/ClickHouseSchemaManager.php +++ b/src/ClickHouseSchemaManager.php @@ -132,6 +132,11 @@ protected function _getPortableTableColumnDefinition($tableColumn) : Column $default = $tableColumn['default_expression']; } + $comment = null; + if (isset($tableColumn['comment'])) { + $comment = $tableColumn['comment']; + } + $options = [ 'length' => $length, 'notnull' => $notnull, @@ -140,7 +145,7 @@ protected function _getPortableTableColumnDefinition($tableColumn) : Column 'fixed' => $fixed, 'unsigned' => $unsigned, 'autoincrement' => false, - 'comment' => null, + 'comment' => $comment, ]; return new Column(