diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/Platforms/MariaDB1052Platform.php')
-rw-r--r-- | vendor/doctrine/dbal/src/Platforms/MariaDB1052Platform.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Platforms/MariaDB1052Platform.php b/vendor/doctrine/dbal/src/Platforms/MariaDB1052Platform.php new file mode 100644 index 0000000..ccccbb0 --- /dev/null +++ b/vendor/doctrine/dbal/src/Platforms/MariaDB1052Platform.php | |||
@@ -0,0 +1,38 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\DBAL\Platforms; | ||
6 | |||
7 | use Doctrine\DBAL\Schema\Index; | ||
8 | use Doctrine\DBAL\Schema\TableDiff; | ||
9 | |||
10 | /** | ||
11 | * Provides the behavior, features and SQL dialect of the MariaDB 10.5 database platform. | ||
12 | */ | ||
13 | class MariaDB1052Platform extends MariaDBPlatform | ||
14 | { | ||
15 | /** | ||
16 | * {@inheritDoc} | ||
17 | */ | ||
18 | protected function getPreAlterTableRenameIndexForeignKeySQL(TableDiff $diff): array | ||
19 | { | ||
20 | return AbstractMySQLPlatform::getPreAlterTableRenameIndexForeignKeySQL($diff); | ||
21 | } | ||
22 | |||
23 | /** | ||
24 | * {@inheritDoc} | ||
25 | */ | ||
26 | protected function getPostAlterTableIndexForeignKeySQL(TableDiff $diff): array | ||
27 | { | ||
28 | return AbstractMySQLPlatform::getPostAlterTableIndexForeignKeySQL($diff); | ||
29 | } | ||
30 | |||
31 | /** | ||
32 | * {@inheritDoc} | ||
33 | */ | ||
34 | protected function getRenameIndexSQL(string $oldIndexName, Index $index, $tableName): array | ||
35 | { | ||
36 | return ['ALTER TABLE ' . $tableName . ' RENAME INDEX ' . $oldIndexName . ' TO ' . $index->getQuotedName($this)]; | ||
37 | } | ||
38 | } | ||