Skip to content

Commit 83d0f69

Browse files
authored
Add support for decimal column type
Previously `decimal` columns were represented with a cast. This now is no longer the case and instead the column type itself is `decimal`. This change takes that into account.
1 parent 9ef25f6 commit 83d0f69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Console/ModelsCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ public function getPropertiesFromTable($model)
584584
'float', 'real', 'float4',
585585
'double', 'float8' => 'float',
586586

587+
'decimal' => 'numeric',
588+
587589
default => 'string',
588590
};
589591
}

0 commit comments

Comments
 (0)