chore: laravel MariaDB min is 10.3
Some checks failed
Backend Tests / run (push) Has been cancelled
Frontend Workflow / run (push) Has been cancelled
Static Code Analysis / run (push) Has been cancelled

This commit is contained in:
Sami Mazouz 2024-11-04 20:22:44 +01:00
parent d7a54037c2
commit 5d10fdc66a
No known key found for this signature in database

View File

@ -55,8 +55,8 @@ class ConnectToDatabase implements Step
$version = $pdo->query('SELECT VERSION()')->fetchColumn(); $version = $pdo->query('SELECT VERSION()')->fetchColumn();
if (Str::contains($version, 'MariaDB')) { if (Str::contains($version, 'MariaDB')) {
if (version_compare($version, '10.10.0', '<')) { if (version_compare($version, '10.3.0', '<')) {
throw new RangeException("MariaDB version ($version) too low. You need at least MariaDB 10.10"); throw new RangeException("MariaDB version ($version) too low. You need at least MariaDB 10.3");
} }
} else { } else {
if (version_compare($version, '5.7.0', '<')) { if (version_compare($version, '5.7.0', '<')) {