Doctrine\DBAL\Platforms\MySqlPlatform::getBlobTypeDeclarationSQL PHP Method

getBlobTypeDeclarationSQL() public method

TINYBLOB : 2 ^ 8 - 1 = 255 BLOB : 2 ^ 16 - 1 = 65535 MEDIUMBLOB : 2 ^ 24 - 1 = 16777215 LONGBLOB : 2 ^ 32 - 1 = 4294967295
public getBlobTypeDeclarationSQL ( array $field ) : string
$field array
return string
    public function getBlobTypeDeclarationSQL(array $field)
    {
        if (!empty($field['length']) && is_numeric($field['length'])) {
            $length = $field['length'];
            if ($length <= static::LENGTH_LIMIT_TINYBLOB) {
                return 'TINYBLOB';
            }
            if ($length <= static::LENGTH_LIMIT_BLOB) {
                return 'BLOB';
            }
            if ($length <= static::LENGTH_LIMIT_MEDIUMBLOB) {
                return 'MEDIUMBLOB';
            }
        }
        return 'LONGBLOB';
    }
MySqlPlatform