Skip to content

Commit

Permalink
fix nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalom committed Feb 5, 2020
1 parent 0c4f23d commit 5de1558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "triun/laravel-model-base",
"version": "6.0.13",
"version": "6.0.14",
"description": "Generate Eloquent Model Bases for Laravel",
"license": "MIT",
"homepage": "https://github.com/Triun",
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/SchemaUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ private function listTableColumns(AbstractSchemaManager $schema, $tableName)
$column->setComment(trim($column->getComment() . ' ' . 'Alias of ' . $column->getName()));
}

$column->nullable = $doctrineColumn->getNotnull();
$column->nullable = !$doctrineColumn->getNotnull();
$column->unsigned = $doctrineColumn->getUnsigned();

$column->dbType = $column->getType()->getName();
Expand Down

0 comments on commit 5de1558

Please sign in to comment.