console.ERROR: Error thrown while running command "--env=prod doctrine:database:create --if-not-exists". Message: "Invalid platform version "mariadb-10.4" specified. The platform version has to be specified in the format: "^(?:5.5.5-)?(mariadb-)?.."." {"exception":"[object] (Doctrine\DBAL\DBALException(code: 0): Invalid platform version \"mariadb-10.4\" specified. The platform version has to be specified in the format: \"^(?:5\.5\.5-)?(mariadb-)?..\". at /app/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:76)","command":"--env=prod doctrine:database:create --if-not-exists","message":"Invalid platform version \"mariadb-10.4\" specified. The platform version has to be specified in the format: \"^(?:5\.5\.5-)?(mariadb-)?..\"."} []
Seems like Doctrine is expecting the string to always contain patch version.
A. Besides the special case for 10.2, should we always default to add 0 as patch version?
B. Or is there some way to get full version from platform.sh relation?
Had this issue on MariaDB 10.4:
DBAL Source: https://github.com/doctrine/dbal/blob/2.9/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php#L173-L187
So by looks of the code here I guess it's also the case if using 10.0, 10.1 and 10.3 with symfonyflex-bridge, ref: https://github.com/platformsh/symfonyflex-bridge/blob/master/platformsh-flex-env.php#L124-L141
Proposal
A. Besides the special case for 10.2, should we always default to add
0
as patch version? B. Or is there some way to get full version from platform.sh relation?