Skip to content

Commit 849d1e3

Browse files
committed
MAGETWO-67092: Table salesrule_product_attribute is not populated when upgrading to 2.2
1 parent b268498 commit 849d1e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class UpgradeData implements \Magento\Framework\Setup\UpgradeDataInterface
3838
/**
3939
* Serializer.
4040
*
41-
* @var \Magento\Framework\Serialize\Serializer\Json
41+
* @var \Magento\Framework\Serialize\SerializerInterface
4242
*/
4343
private $serializer;
4444

@@ -53,15 +53,15 @@ class UpgradeData implements \Magento\Framework\Setup\UpgradeDataInterface
5353
* @param \Magento\Framework\DB\AggregatedFieldDataConverter $aggregatedFieldConverter
5454
* @param \Magento\Framework\EntityManager\MetadataPool $metadataPool
5555
* @param \Magento\SalesRule\Model\ResourceModel\Rule $resourceModelRule
56-
* @param \Magento\Framework\Serialize\Serializer\Json $serializer
56+
* @param \Magento\Framework\Serialize\SerializerInterface $serializer
5757
* @param \Magento\Framework\App\State $state
5858
* @param \Magento\SalesRule\Model\ResourceModel\Rule\CollectionFactory $ruleColletionFactory
5959
*/
6060
public function __construct(
6161
\Magento\Framework\DB\AggregatedFieldDataConverter $aggregatedFieldConverter,
6262
\Magento\Framework\EntityManager\MetadataPool $metadataPool,
6363
\Magento\SalesRule\Model\ResourceModel\Rule $resourceModelRule,
64-
\Magento\Framework\Serialize\Serializer\Json $serializer,
64+
\Magento\Framework\Serialize\SerializerInterface $serializer,
6565
\Magento\Framework\App\State $state,
6666
\Magento\SalesRule\Model\ResourceModel\Rule\CollectionFactory $ruleColletionFactory
6767
) {
@@ -77,7 +77,7 @@ public function __construct(
7777
* @inheritdoc
7878
*/
7979
public function upgrade(
80-
\Magento\Framework\Setup\ModuleDataSetupInterface $setup,
80+
\Magento\Framework\Setup\ModuleDataSetupInterface $setup,
8181
\Magento\Framework\Setup\ModuleContextInterface $context
8282
) {
8383
$setup->startSetup();

0 commit comments

Comments
 (0)