Skip to content

Commit 6caed91

Browse files
authored
Update max length for attribute_code (30 to 255)
According with 'attribute_code' (size 255) see in https://github.com/magento/magento2/blob/develop/app/code/Magento/Eav/Setup/InstallSchema.php#L644 , I update the ATTRIBUTE_CODE_MAX_LENGTH constant value from 30 to 255;
1 parent 04c5b80 commit 6caed91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Attribute extends \Magento\Eav\Model\Entity\Attribute\AbstractAttribute im
2323
/**
2424
* Attribute code max length
2525
*/
26-
const ATTRIBUTE_CODE_MAX_LENGTH = 30;
26+
const ATTRIBUTE_CODE_MAX_LENGTH = 255;
2727

2828
/**
2929
* Cache tag

0 commit comments

Comments
 (0)