Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file.
### Changed
- Add support for multiple pivot types when using the same accessor.
- Smarter reset, keep tags that IDE helper doesn't use
- Use `numeric` type on fields with `decimal` casts


2024-10-18, 3.2.0
--------------
Expand Down
2 changes: 2 additions & 0 deletions src/Console/ModelsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ public function castPropertiesType($model)
$realType = 'bool';
break;
case 'decimal':
$realType = 'numeric';
break;
case 'string':
case 'hashed':
$realType = 'string';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @property float $cast_to_real
* @property float $cast_to_float
* @property float $cast_to_double
* @property string $cast_to_decimal
* @property numeric $cast_to_decimal
* @property string $cast_to_string
* @property bool $cast_to_bool
* @property bool $cast_to_boolean
Expand Down