Skip to content

功能请求:添加更多 JSON 类型映射支持 #27

Description

@l1n6yun

目前 ModelUpdateVisitor 中的 formatDatabaseType 方法仅支持基础的类型映射。希望能添加对更多 JSON 相关数据库类型的支持,以提高对不同数据库系统的兼容性。

protected function formatDatabaseType(string $type): ?string
{
    return match ($type) {
        'tinyint', 'smallint', 'mediumint', 'int', 'bigint' => 'integer',
        'bool', 'boolean' => 'boolean',
        'json' => 'json',
        default => null,
    };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions