drop mariadb 10.1
This commit is contained in:
@@ -11,7 +11,7 @@ It's a web application with a frontend designed as a single page application and
|
||||
### Requirements
|
||||
|
||||
* PHP 8.0 and later;
|
||||
* MySQL 5.7 (and later), or MariaDB 10.1 (and later).
|
||||
* MySQL 5.7 (and later), or MariaDB 10.2 (and later).
|
||||
|
||||
For more information about server configuration see [this article](https://docs.espocrm.com/administration/server-configuration/).
|
||||
|
||||
|
||||
+4
-22
@@ -197,34 +197,16 @@ class MysqlColumnPreparator implements ColumnPreparator
|
||||
*/
|
||||
private function detectMaxIndexLength(): int
|
||||
{
|
||||
$databaseType = $this->helper->getType();
|
||||
|
||||
$tableEngine = $this->getTableEngine();
|
||||
|
||||
if (!$tableEngine) {
|
||||
return self::DEFAULT_INDEX_LIMIT;
|
||||
}
|
||||
|
||||
switch ($tableEngine) {
|
||||
case 'InnoDB':
|
||||
$version = $this->helper->getVersion();
|
||||
|
||||
switch ($databaseType) {
|
||||
case self::TYPE_MARIADB:
|
||||
if (version_compare($version, '10.2.2') >= 0) {
|
||||
return 3072; // InnoDB, MariaDB 10.2.2+
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case self::TYPE_MYSQL:
|
||||
return 3072;
|
||||
}
|
||||
|
||||
return 767; // InnoDB
|
||||
}
|
||||
|
||||
return 1000; // MyISAM
|
||||
return match ($tableEngine) {
|
||||
'InnoDB' => 3072,
|
||||
default => 1000,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -261,7 +261,7 @@ return [
|
||||
],
|
||||
'requiredMysqlVersion' => '5.7.0',
|
||||
'recommendedMysqlParams' => [],
|
||||
'requiredMariadbVersion' => '10.1.0',
|
||||
'requiredMariadbVersion' => '10.2.2',
|
||||
'recommendedMariadbParams' => [],
|
||||
/** Max execution time (in seconds) allocated for a single job. If exceeded then set to Failed.*/
|
||||
'jobPeriod' => 7800,
|
||||
|
||||
Reference in New Issue
Block a user