Skip to content

Commit

Permalink
chore: laravel MariaDB min is 10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Nov 4, 2024
1 parent d7a5403 commit 5d10fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/core/src/Install/Steps/ConnectToDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ private function mysql(array $config): void
$version = $pdo->query('SELECT VERSION()')->fetchColumn();

if (Str::contains($version, 'MariaDB')) {
if (version_compare($version, '10.10.0', '<')) {
throw new RangeException("MariaDB version ($version) too low. You need at least MariaDB 10.10");
if (version_compare($version, '10.3.0', '<')) {
throw new RangeException("MariaDB version ($version) too low. You need at least MariaDB 10.3");
}
} else {
if (version_compare($version, '5.7.0', '<')) {
Expand Down

0 comments on commit 5d10fdc

Please sign in to comment.