Skip to content

Commit cb47bc6

Browse files
authored
Deprecate support for MariaDB 10.5 (#7000)
| Q | A |------------- | ----------- | Type | improvement | Fixed issues | N/A #### Summary MariaDB 10.5 community edition will be EOL next week and enterprise support will end next month. I believe we don't want to keep on supporting this release in DBAL 5, so we might as well deprecate the support now. see https://mariadb.org/about/#maintenance-policy
1 parent d2b297e commit cb47bc6

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

UPGRADE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ awareness about deprecated code.
88

99
# Upgrade to 4.3
1010

11+
## Deprecated support for MariaDB 10.5
12+
13+
* Upgrade to MariaDB 10.6 or later.
14+
1115
## Deprecated `Column` methods
1216

1317
The following `Column` methods have been deprecated:

src/Driver/AbstractMySQLDriver.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ public function getDatabasePlatform(ServerVersionProvider $versionProvider): Abs
4646
return new MariaDB1060Platform();
4747
}
4848

49-
if (version_compare($mariaDbVersion, '10.5.2', '>=')) {
50-
return new MariaDB1052Platform();
51-
}
52-
5349
Deprecation::trigger(
5450
'doctrine/dbal',
5551
'https://github.com/doctrine/dbal/pull/6343',
56-
'Support for MariaDB < 10.5.2 is deprecated and will be removed in DBAL 5',
52+
'Support for MariaDB < 10.6.0 is deprecated and will be removed in DBAL 5',
5753
);
5854

55+
if (version_compare($mariaDbVersion, '10.5.2', '>=')) {
56+
return new MariaDB1052Platform();
57+
}
58+
5959
return new MariaDBPlatform();
6060
}
6161

src/Platforms/MariaDB1060Platform.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
/**
1010
* Provides the behavior, features and SQL dialect of the MariaDB 10.6 database platform.
11+
*
12+
* @deprecated This class will be removed once support for MariaDB 10.5 is dropped.
1113
*/
1214
class MariaDB1060Platform extends MariaDB1052Platform
1315
{

0 commit comments

Comments
 (0)