Skip to content

Commit a4a9c2f

Browse files
author
Volodymyr Klymenko
authored
Merge pull request magento#968 from magento-east/MAGETWO-66470
[East] MAGETWO-66470: Refactor catalog module 2.1.4 version data and schema update
2 parents be7cbf2 + 7e7d6db commit a4a9c2f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
3434
}
3535

3636
if (version_compare($context->getVersion(), '2.1.4', '<')) {
37+
$this->addSourceEntityIdToProductEavIndex($setup);
38+
}
39+
40+
if (version_compare($context->getVersion(), '2.1.5', '<')) {
3741
$this->addPercentageValueColumn($setup);
3842
$tables = [
3943
'catalog_product_index_price_cfg_opt_agr_idx',
@@ -56,7 +60,6 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
5660
['type' => 'integer', 'nullable' => false]
5761
);
5862
}
59-
$this->addSourceEntityIdToProductEavIndex($setup);
6063
$this->recreateCatalogCategoryProductIndexTmpTable($setup);
6164
}
6265

0 commit comments

Comments
 (0)