File "MariaDb1027Platform.php"
Full Path: /home/warrior1/public_html/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Platforms/MariaDb1027Platform.php
File size: 544 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace MailPoetVendor\Doctrine\DBAL\Platforms;
if (!defined('ABSPATH')) exit;
use MailPoetVendor\Doctrine\DBAL\Types\Types;
class MariaDb1027Platform extends MySqlPlatform
{
public function getJsonTypeDeclarationSQL(array $column) : string
{
return 'LONGTEXT';
}
protected function getReservedKeywordsClass() : string
{
return Keywords\MariaDb102Keywords::class;
}
protected function initializeDoctrineTypeMappings() : void
{
parent::initializeDoctrineTypeMappings();
$this->doctrineTypeMapping['json'] = Types::JSON;
}
}