Skip to content

Commit e7432e6

Browse files
committed
MAGETWO-66470: Refactor catalog module 2.1.4 version data and schema update
1 parent 535860a commit e7432e6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

Lines changed: 4 additions & 1 deletion
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

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.1.5">
9+
<module name="Magento_Catalog" setup_version="2.1.6">
1010
<sequence>
1111
<module name="Magento_Eav"/>
1212
<module name="Magento_Cms"/>

0 commit comments

Comments
 (0)