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
MySQL57Platform.php
47 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Doctrine\DBAL\Platforms; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | use MailPoetVendor\Doctrine\DBAL\Schema\Index; |
| 5 | use MailPoetVendor\Doctrine\DBAL\Schema\TableDiff; |
| 6 | use MailPoetVendor\Doctrine\DBAL\SQL\Parser; |
| 7 | use MailPoetVendor\Doctrine\DBAL\Types\Types; |
| 8 | use MailPoetVendor\Doctrine\Deprecations\Deprecation; |
| 9 | class MySQL57Platform extends MySQLPlatform |
| 10 | { |
| 11 | public function hasNativeJsonType() |
| 12 | { |
| 13 | Deprecation::triggerIfCalledFromOutside('doctrine/dbal', 'https://github.com/doctrine/dbal/pull/5509', '%s is deprecated.', __METHOD__); |
| 14 | return \true; |
| 15 | } |
| 16 | public function getJsonTypeDeclarationSQL(array $column) |
| 17 | { |
| 18 | return 'JSON'; |
| 19 | } |
| 20 | public function createSQLParser() : Parser |
| 21 | { |
| 22 | return new Parser(\true); |
| 23 | } |
| 24 | protected function getPreAlterTableRenameIndexForeignKeySQL(TableDiff $diff) |
| 25 | { |
| 26 | return []; |
| 27 | } |
| 28 | protected function getPostAlterTableRenameIndexForeignKeySQL(TableDiff $diff) |
| 29 | { |
| 30 | return []; |
| 31 | } |
| 32 | protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName) |
| 33 | { |
| 34 | return ['ALTER TABLE ' . $tableName . ' RENAME INDEX ' . $oldIndexName . ' TO ' . $index->getQuotedName($this)]; |
| 35 | } |
| 36 | protected function getReservedKeywordsClass() |
| 37 | { |
| 38 | Deprecation::triggerIfCalledFromOutside('doctrine/dbal', 'https://github.com/doctrine/dbal/issues/4510', 'MySQL57Platform::getReservedKeywordsClass() is deprecated,' . ' use MySQL57Platform::createReservedKeywordsList() instead.'); |
| 39 | return Keywords\MySQL57Keywords::class; |
| 40 | } |
| 41 | protected function initializeDoctrineTypeMappings() |
| 42 | { |
| 43 | parent::initializeDoctrineTypeMappings(); |
| 44 | $this->doctrineTypeMapping['json'] = Types::JSON; |
| 45 | } |
| 46 | } |
| 47 |