mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 07:41:04 +08:00
chore: laravel MariaDB min is 10.3
This commit is contained in:
parent
d7a54037c2
commit
5d10fdc66a
|
@ -55,8 +55,8 @@ class ConnectToDatabase implements Step
|
|||
$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', '<')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user