We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1c7ebea + 27af3a4 commit e5343caCopy full SHA for e5343ca
app/code/Magento/Eav/Model/Entity/Attribute.php
@@ -21,9 +21,12 @@ class Attribute extends \Magento\Eav\Model\Entity\Attribute\AbstractAttribute im
21
\Magento\Framework\DataObject\IdentityInterface
22
{
23
/**
24
- * Attribute code max length
+ * 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.
28
*/
- const ATTRIBUTE_CODE_MAX_LENGTH = 255;
29
+ const ATTRIBUTE_CODE_MAX_LENGTH = 60;
30
31
32
* Cache tag
0 commit comments