Skip to content

Commit 2a3f901

Browse files
committed
Merge branch 'MAGETWO-47025' of github.corp.magento.com:magento-troll/magento2ce into MAGETWO-51814
2 parents f722d4f + a7c9360 commit 2a3f901

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

app/code/Magento/Catalog/Setup/UpgradeData.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,20 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface
338338
]
339339
);
340340
}
341+
342+
if (version_compare($context->getVersion(), '2.0.7') < 0) {
343+
/** @var EavSetup $eavSetupF */
344+
$eavSetup= $this->eavSetupFactory->create(['setup' => $setup]);
341345

346+
$eavSetup->updateAttribute(
347+
ProductAttributeInterface::ENTITY_TYPE_CODE,
348+
'meta_description',
349+
[
350+
'note' => 'Maximum 255 chars. Meta Description should optimally be between 150-160 characters'
351+
]
352+
);
353+
}
354+
342355
$setup->endSetup();
343356
}
344357
}

app/code/Magento/Catalog/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9-
<module name="Magento_Catalog" setup_version="2.0.6">
9+
<module name="Magento_Catalog" setup_version="2.0.7">
1010
<sequence>
1111
<module name="Magento_Eav"/>
1212
<module name="Magento_Cms"/>

app/code/Magento/Eav/Setup/EavSetup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ public function addAttributeOption($option)
909909
*
910910
* @param int|string $entityTypeId
911911
* @param int|string $id
912-
* @param string $field
912+
* @param string|array $field
913913
* @param mixed $value
914914
* @param int $sortOrder
915915
* @return $this

0 commit comments

Comments
 (0)