From 6a82bf24e5fabe05dc64708d6ab45748af99cb84 Mon Sep 17 00:00:00 2001 From: Nguyen Huu Phuc Date: Fri, 4 Dec 2020 20:25:01 +0700 Subject: [PATCH] merge --- src/ClickHouseSchemaManager.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(