fix: added exception for MariaDB

This commit is contained in:
Sergey Shevchenko 2020-10-29 17:51:40 +13:00
parent 5e26757a9e
commit 62725a5db3
1 changed files with 5 additions and 0 deletions

View File

@ -245,7 +245,12 @@ class MySQLSchemaManager extends DBSchemaManager
{
// MySQL 8.0.17 stopped reporting the width attribute for integers
// https://github.com/silverstripe/silverstripe-framework/issues/9453
// Note: MariaDB did not change its behaviour
$v = $this->database->getVersion();
if(false !== strpos($v, 'MariaDB')) {
// MariaDB is included in the version string: https://mariadb.com/kb/en/version/
return true;
}
return version_compare($v,'8.0.17','<');
}