功能请求:添加更多 JSON 类型映射支持
Aperta
- Lingua principale
- PHP
- Stelle
- 20
- Fork
- 18
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
目前 `ModelUpdateVisitor` 中的 [`formatDatabaseType`](https://github.com/hyperf/database/blob/66a65f726ed8fd08c383d085611e61046d802064/src/Commands/Ast/ModelUpdateVisitor.php#L399) 方法仅支持基础的类型映射。希望能添加对更多 JSON 相关数据库类型的支持,以提高对不同数据库系统的兼容性。
```php
protected function formatDatabaseType(string $type): ?string
{
return match ($type) {
'tinyint', 'smallint', 'mediumint', 'int', 'bigint' => 'integer',
'bool', 'boolean' => 'boolean',
'json' => 'json',
default => null,
};
}
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.