Skip to content

Commit

Permalink
Add support for tinyint type (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
XedinUnknown authored Apr 27, 2024
1 parent 5bd255d commit 09d0b34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Console/GenerateFactoryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ protected function mapByType(string $field, bool $nullable = false): ?string
'integer' => $this->fakerPrefix('randomNumber()', $nullable),
'bigint' => $this->fakerPrefix('randomNumber()', $nullable),
'smallint' => $this->fakerPrefix('randomNumber()', $nullable),
'tinyint' => $this->fakerPrefix('randomNumber(1)', $nullable),
'decimal' => $this->fakerPrefix('randomFloat()', $nullable),
'float' => $this->fakerPrefix('randomFloat()', $nullable),
'boolean' => $this->fakerPrefix('boolean', $nullable),
Expand Down

0 comments on commit 09d0b34

Please sign in to comment.