Skip to content

Commit f5caa83

Browse files
committed
fix: patch up default false not reflecting
1 parent f1c34e9 commit f5caa83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Schema.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,12 +506,12 @@ protected static function createColumn($table, $columnName, $columnValue, $creat
506506

507507
if ($createOnly === true) {
508508
foreach ($columnValue as $columnOptionName => $columnOptionValue) {
509-
if (is_bool($columnOptionValue)) {
509+
if (!is_bool($columnOptionValue) || $columnOptionName === 'default') {
510+
$returnedColumn->{$columnOptionName}($columnOptionValue);
511+
} else {
510512
if ($columnOptionValue) {
511513
$returnedColumn->{$columnOptionName}();
512514
}
513-
} else {
514-
$returnedColumn->{$columnOptionName}($columnOptionValue);
515515
}
516516
}
517517
}

0 commit comments

Comments
 (0)