Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit d9bca64

Browse files
authored
Fix incorrect use of serverVersion for MariaDB
This small change fixes 2 things: 1/ Incorrect use of `serverVersion` for MariaDB, which *must* be prefixed with `mariadb-`, see: doctrine/dbal#3083 && symfony/symfony-docs#9547 (and doctrine/dbal#2985 (comment) for the discussion) 2/ `doctrine/dbal` now supports `MariaDB >= 10.2.7`. I added the `.12` as a minor version, but we don't need to update it when platform.sh will use .13 or .14 etc.... as long as it's superior as `10.2.7` (see: https://github.com/doctrine/dbal/blob/f76bf5ef631cec551a86c2291fc749534febebf1/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php#L136)
1 parent cf697ec commit d9bca64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platformsh-flex-env.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function mapPlatformShDatabase() : void
6060
switch ($endpoint['scheme']) {
6161
case 'mysql':
6262
// Defaults to the latest MariaDB version
63-
$dbUrl .= '?charset=utf8mb4&serverVersion=10.2';
63+
$dbUrl .= '?charset=utf8mb4&serverVersion=mariadb-10.2.12';
6464
break;
6565

6666
case 'pgsql':

0 commit comments

Comments
 (0)