Вход Регистрация
Файл: vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/MariaDb1027Platform.php
Строк: 35
<?php

namespace DoctrineDBALPlatforms;

use 
DoctrineDBALTypesTypes;

/**
 * Provides the behavior, features and SQL dialect of the MariaDB 10.2 (10.2.7 GA) database platform.
 *
 * Note: Should not be used with versions prior to 10.2.7.
 */
class MariaDb1027Platform extends MySqlPlatform
{
    
/**
     * {@inheritdoc}
     *
     * @link https://mariadb.com/kb/en/library/json-data-type/
     */
    
public function getJsonTypeDeclarationSQL(array $column): string
    
{
        return 
'LONGTEXT';
    }

    protected function 
getReservedKeywordsClass(): string
    
{
        return 
KeywordsMariaDb102Keywords::class;
    }

    protected function 
initializeDoctrineTypeMappings(): void
    
{
        
parent::initializeDoctrineTypeMappings();

        
$this->doctrineTypeMapping['json'] = Types::JSON;
    }
}
Онлайн: 0
Реклама