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
|
### Requirements
|
||||||
|
|
||||||
* PHP 8.0 and later;
|
* 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/).
|
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
|
private function detectMaxIndexLength(): int
|
||||||
{
|
{
|
||||||
$databaseType = $this->helper->getType();
|
|
||||||
|
|
||||||
$tableEngine = $this->getTableEngine();
|
$tableEngine = $this->getTableEngine();
|
||||||
|
|
||||||
if (!$tableEngine) {
|
if (!$tableEngine) {
|
||||||
return self::DEFAULT_INDEX_LIMIT;
|
return self::DEFAULT_INDEX_LIMIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($tableEngine) {
|
return match ($tableEngine) {
|
||||||
case 'InnoDB':
|
'InnoDB' => 3072,
|
||||||
$version = $this->helper->getVersion();
|
default => 1000,
|
||||||
|
};
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ return [
|
|||||||
],
|
],
|
||||||
'requiredMysqlVersion' => '5.7.0',
|
'requiredMysqlVersion' => '5.7.0',
|
||||||
'recommendedMysqlParams' => [],
|
'recommendedMysqlParams' => [],
|
||||||
'requiredMariadbVersion' => '10.1.0',
|
'requiredMariadbVersion' => '10.2.2',
|
||||||
'recommendedMariadbParams' => [],
|
'recommendedMariadbParams' => [],
|
||||||
/** Max execution time (in seconds) allocated for a single job. If exceeded then set to Failed.*/
|
/** Max execution time (in seconds) allocated for a single job. If exceeded then set to Failed.*/
|
||||||
'jobPeriod' => 7800,
|
'jobPeriod' => 7800,
|
||||||
|
|||||||
Reference in New Issue
Block a user