Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for upgrading module from 8.x to master (related to issue #77) #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jochhop
Copy link

@jochhop jochhop commented Aug 12, 2022

Related to #77 (but issue #77 is related to tag 9.0.0)

There's still an issue when ugrading the module from 8.x (8.3.5 in my case) to master branch.

Pre-requisites

Bazaarvoice extension installed in version 8.3.5
Bazaarvoice extension updated to master branch

Issue

A mysql error shows up when executing bin/magento set:up command:

Unable to apply data patch Bazaarvoice\Connector\Setup\Patch\Data\UpgradeBvDataAtttribute for module Bazaarvoice_Connector. Original exception message: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4-bv_feed_include' for key 'eav_attribute.EAV_ATTRIBUTE_ENTITY_TYPE_ID_ATTRIBUTE_CODE', query was: UPDATE `eav_attribute` SET `attribute_code` = ? WHERE (`attribute_id`='618')

Solution

Check if the attribute code to be set (bv_feed_include) already exists in database.

Please see the code I have pushed to check the possible fix

@valenciaisaza
Copy link

Hi I have this problem upgrading my Magento, using the last version of BV 9.1.5. This is the solution for me, do you think to update the ext. to be installed by composer? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants