Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
phucnh-nfq committed Dec 7, 2020
1 parent f00e5af commit 6a82bf2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ClickHouseSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -140,7 +145,7 @@ protected function _getPortableTableColumnDefinition($tableColumn) : Column
'fixed' => $fixed,
'unsigned' => $unsigned,
'autoincrement' => false,
'comment' => null,
'comment' => $comment,
];

return new Column(
Expand Down

0 comments on commit 6a82bf2

Please sign in to comment.