Keywords
9 months ago
MySQL
2 years ago
AbstractMySQLPlatform.php
9 months ago
AbstractPlatform.php
9 months ago
DateIntervalUnit.php
2 years ago
MariaDBPlatform.php
2 years ago
MariaDb1010Platform.php
9 months ago
MariaDb1027Platform.php
2 years ago
MariaDb1043Platform.php
2 years ago
MariaDb1052Platform.php
2 years ago
MariaDb1060Platform.php
2 years ago
MariaDb110700Platform.php
9 months ago
MySQL57Platform.php
2 years ago
MySQL80Platform.php
2 years ago
MySQL84Platform.php
9 months ago
MySQLPlatform.php
2 years ago
PostgreSQL120Platform.php
9 months ago
TrimMode.php
2 years ago
index.php
2 years ago
MariaDBPlatform.php
27 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Doctrine\DBAL\Platforms; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | use MailPoetVendor\Doctrine\DBAL\Types\Types; |
| 5 | use MailPoetVendor\Doctrine\Deprecations\Deprecation; |
| 6 | class MariaDBPlatform extends MySQLPlatform |
| 7 | { |
| 8 | public function getDefaultValueDeclarationSQL($column) |
| 9 | { |
| 10 | return AbstractPlatform::getDefaultValueDeclarationSQL($column); |
| 11 | } |
| 12 | public function getJsonTypeDeclarationSQL(array $column) : string |
| 13 | { |
| 14 | return 'LONGTEXT'; |
| 15 | } |
| 16 | protected function getReservedKeywordsClass() : string |
| 17 | { |
| 18 | Deprecation::triggerIfCalledFromOutside('doctrine/dbal', 'https://github.com/doctrine/dbal/issues/4510', 'MariaDb1027Platform::getReservedKeywordsClass() is deprecated,' . ' use MariaDb1027Platform::createReservedKeywordsList() instead.'); |
| 19 | return Keywords\MariaDb102Keywords::class; |
| 20 | } |
| 21 | protected function initializeDoctrineTypeMappings() : void |
| 22 | { |
| 23 | parent::initializeDoctrineTypeMappings(); |
| 24 | $this->doctrineTypeMapping['json'] = Types::JSON; |
| 25 | } |
| 26 | } |
| 27 |