Skip to content

Commit

Permalink
Merge pull request magento#968 from magento-east/MAGETWO-66470
Browse files Browse the repository at this point in the history
[East] MAGETWO-66470: Refactor catalog module 2.1.4 version data and schema update
  • Loading branch information
Volodymyr Klymenko authored Mar 28, 2017
2 parents be7cbf2 + 7e7d6db commit a4a9c2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/code/Magento/Catalog/Setup/UpgradeSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
}

if (version_compare($context->getVersion(), '2.1.4', '<')) {
$this->addSourceEntityIdToProductEavIndex($setup);
}

if (version_compare($context->getVersion(), '2.1.5', '<')) {
$this->addPercentageValueColumn($setup);
$tables = [
'catalog_product_index_price_cfg_opt_agr_idx',
Expand All @@ -56,7 +60,6 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
['type' => 'integer', 'nullable' => false]
);
}
$this->addSourceEntityIdToProductEavIndex($setup);
$this->recreateCatalogCategoryProductIndexTmpTable($setup);
}

Expand Down

0 comments on commit a4a9c2f

Please sign in to comment.