Skip to content

Commit 235ccff

Browse files
author
Oleksii Korshenko
committed
MAGETWO-70667: Updated EAV Attribute code max length #10225
1 parent 24b4336 commit 235ccff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Eav/Model/Entity/Attribute.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ class Attribute extends \Magento\Eav\Model\Entity\Attribute\AbstractAttribute im
2121
\Magento\Framework\DataObject\IdentityInterface
2222
{
2323
/**
24-
* Attribute code max length
24+
* Attribute code max length.
25+
*
26+
* The value is defined as 60 because in the flat mode attribute code will be transformed into column name.
27+
* MySQL allows only 64 symbols in column name.
2528
*/
2629
const ATTRIBUTE_CODE_MAX_LENGTH = 60;
2730

0 commit comments

Comments
 (0)