Skip to content

Commit 2aff5a6

Browse files
author
Andrii Kasian
committed
MAGETWO-43755: [GITHUB] The commit «PCF: removing grouped price» from 2015-10-02 breaks Magento schema upgrading with the exception
1 parent d6f3c21 commit 2aff5a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public function __construct(CategorySetupFactory $categorySetupFactory)
3939
public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
4040
{
4141
$setup->startSetup();
42-
if (version_compare($context->getVersion(), '2.0.1') < 0) {
42+
if ($context->getVersion() && version_compare($context->getVersion(), '2.0.1') < 0) {
43+
4344
/** @var \Magento\Catalog\Setup\CategorySetup $categorySetup */
4445
$categorySetup = $this->categorySetupFactory->create(['setup' => $setup]);
4546

0 commit comments

Comments
 (0)