Skip to content

Commit

Permalink
Merge pull request #179 from YotpoLtd/2.9.0-release
Browse files Browse the repository at this point in the history
v2.9.0: Fixed a bug on UpgradeData.php (when Magento uses table prefi…
  • Loading branch information
DanGlz committed Sep 4, 2019
2 parents 687225a + e5eac13 commit 84e10e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Console/Command/ResetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private function resetConfig()
{
$this->resourceConnection->getConnection()->delete(
$this->resourceConnection->getTableName('core_config_data'),
"path LIKE '" . \Yotpo\Yotpo\Helper\Data::XML_PATH_ALL . "/%'"
"path LIKE '" . \Yotpo\Yotpo\Model\Config::XML_PATH_YOTPO_ALL . "/%'"
);
}
}
2 changes: 1 addition & 1 deletion Setup/UpgradeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface

// Clear config values for the 'default' & 'website' scopes
$setup->getConnection()->delete(
$setup->getConnection()->getTableName('core_config_data'),
$setup->getTable('core_config_data'),
"path IN ('" . implode("','", [YotpoConfig::XML_PATH_YOTPO_APP_KEY, YotpoConfig::XML_PATH_YOTPO_SECRET, YotpoConfig::XML_PATH_YOTPO_ENABLED]) . "') AND scope != '" . ScopeInterface::SCOPE_STORES . "'"
);

Expand Down

0 comments on commit 84e10e3

Please sign in to comment.