Setup script: Remove config for specific scope ID #515

Closed
wants to merge 1 commit into
from
View
6 app/code/Magento/Core/Model/Resource/Setup.php
@@ -733,14 +733,18 @@ public function setConfigData($path, $value, $scope = \Magento\Core\Model\Store:
*
* @param string $path
* @param string $scope (default|stores|websites|config)
+ * @param int $scope_id
* @return $this
*/
- public function deleteConfigData($path, $scope = null)
+ public function deleteConfigData($path, $scope = null, $scope_id = null)
{
$where = array('path = ?' => $path);
if (null !== $scope) {
$where['scope = ?'] = $scope;
}
+ if (null !== $scope_id) {
+ $where['scope_id = ?'] = $scope_id;
+ }
$this->getConnection()->delete($this->getTable('core_config_data'), $where);
return $this;
}