mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
fix: added exception for MariaDB
This commit is contained in:
parent
5e26757a9e
commit
62725a5db3
@ -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','<');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user