Skip to content

Commit 1a1c5ac

Browse files
committed
Fix extra
1 parent 1911c51 commit 1a1c5ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Schema.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ private function loadColumn(array $info): ColumnInterface
386386
]);
387387

388388
if (str_starts_with($extra, 'DEFAULT_GENERATED')) {
389-
$column->extra(trim(substr($extra, 18)));
389+
$extra = trim(substr($extra, 18));
390+
$column->extra($extra === '' ? null : $extra);
390391
}
391392

392393
return $column;

0 commit comments

Comments
 (0)