summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Platforms/MySQLPlatform.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2026-10-18 00:08:23 +0200
committerpolo <ordipolo@gmx.fr>2026-10-18 00:10:03 +0200
commit05e38eadbeb3de19e5b26003c2b401e00bb71df4 (patch)
treecf48350b69cfce92de6f3a0e03eb0876931c7077 /vendor/doctrine/dbal/src/Platforms/MySQLPlatform.php
parent32843e50aa981f190bdb4fbc9adbeacc06fdf775 (diff)
downloadAppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.gz
AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.bz2
AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.zip
sortie de vendor du dépôt, oubli dans config-template.ini
Diffstat (limited to 'vendor/doctrine/dbal/src/Platforms/MySQLPlatform.php')
-rw-r--r--vendor/doctrine/dbal/src/Platforms/MySQLPlatform.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/vendor/doctrine/dbal/src/Platforms/MySQLPlatform.php b/vendor/doctrine/dbal/src/Platforms/MySQLPlatform.php
deleted file mode 100644
index 840ff57..0000000
--- a/vendor/doctrine/dbal/src/Platforms/MySQLPlatform.php
+++ /dev/null
@@ -1,49 +0,0 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Platforms;
6
7use Doctrine\DBAL\Platforms\Keywords\KeywordList;
8use Doctrine\DBAL\Platforms\Keywords\MySQLKeywords;
9use Doctrine\DBAL\Schema\Index;
10use Doctrine\DBAL\Types\BlobType;
11use Doctrine\DBAL\Types\TextType;
12
13/**
14 * Provides the behavior, features and SQL dialect of the Oracle MySQL database platform
15 * of the oldest supported version.
16 */
17class MySQLPlatform extends AbstractMySQLPlatform
18{
19 /**
20 * {@inheritDoc}
21 *
22 * Oracle MySQL does not support default values on TEXT/BLOB columns until 8.0.13.
23 *
24 * @internal The method should be only used from within the {@see AbstractPlatform} class hierarchy.
25 *
26 * @link https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-13.html#mysqld-8-0-13-data-types
27 */
28 public function getDefaultValueDeclarationSQL(array $column): string
29 {
30 if ($column['type'] instanceof TextType || $column['type'] instanceof BlobType) {
31 unset($column['default']);
32 }
33
34 return parent::getDefaultValueDeclarationSQL($column);
35 }
36
37 /**
38 * {@inheritDoc}
39 */
40 protected function getRenameIndexSQL(string $oldIndexName, Index $index, string $tableName): array
41 {
42 return ['ALTER TABLE ' . $tableName . ' RENAME INDEX ' . $oldIndexName . ' TO ' . $index->getQuotedName($this)];
43 }
44
45 protected function createReservedKeywordsList(): KeywordList
46 {
47 return new MySQLKeywords();
48 }
49}