startSetup(); $conn = $installer->getConnection(); $select = $conn ->select() ->from($this->getTable('core/config_data'), array('scope', 'scope_id', 'path', 'value')) ->where(new Zend_Db_Expr("path LIKE 'moneybookers/moneybookers%'")); $data = $conn->fetchAll($select); if (!empty($data)) { foreach ($data as $key => $value) { $data[$key]['path'] = preg_replace('/^moneybookers\/moneybookers/', 'payment/moneybookers', $value['path']); } $conn->insertOnDuplicate($this->getTable('core/config_data'), $data, array('path')); $conn->delete($this->getTable('core/config_data'), new Zend_Db_Expr("path LIKE 'moneybookers/moneybookers%'")); } $installer->endSetup();