We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 49a8eb1 + 485bce7 commit b5628c1Copy full SHA for b5628c1
1 file changed
src/Types.php
@@ -729,7 +729,7 @@ public function getIntegerTypes(): array
729
730
public function mapAliasToMysqlType(string $alias): string
731
{
732
- return [
+ return match ($alias) {
733
'BOOL' => 'TINYINT',
734
'BOOLEAN' => 'TINYINT',
735
'CHARACTER VARYING' => 'VARCHAR',
@@ -746,7 +746,8 @@ public function mapAliasToMysqlType(string $alias): string
746
'LONG' => 'MEDIUMTEXT',
747
'MIDDLEINT' => 'MEDIUMINT',
748
'NUMERIC' => 'DECIMAL',
749
- ][$alias] ?? $alias;
+ default => $alias,
750
+ };
751
}
752
753
/**
0 commit comments