Skip to content

Commit

Permalink
Add column comment
Browse files Browse the repository at this point in the history
  • Loading branch information
asanikovich committed Sep 26, 2024
1 parent fb68269 commit 5f1af8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ClickHouseSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected function _getPortableTableColumnDefinition(array $tableColumn): Column
'default' => $default,
'notnull' => $notnull,
'autoincrement' => false,
'comment' => '',
'comment' => $tableColumn['name'] ?? null,

Check failure on line 143 in src/ClickHouseSchemaManager.php

View workflow job for this annotation

GitHub Actions / PHPStan

Offset 'name' on array<string, mixed> on left side of ?? always exists and is not nullable.
];

return new Column(
Expand Down

0 comments on commit 5f1af8b

Please sign in to comment.