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

Unable to apply data patch #93

Closed
Antonio-Bennett opened this issue Nov 18, 2024 · 4 comments
Closed

Unable to apply data patch #93

Antonio-Bennett opened this issue Nov 18, 2024 · 4 comments

Comments

@Antonio-Bennett
Copy link

Preconditions (*)

  1. Extension Version: 1.3.4
  2. Magento Version: 2.4.5

Steps to reproduce (*)

1.Existing eav attribute set with an attribute_set_id of 10 in the General attribute_group_name
2. attribute_group_code is product-details

Expected result (*)

  1. Module patches correctly and is installed

Actual result (*)

Unable to apply data patch Meta\Catalog\Setup\Patch\Data\AddProductAttributes for module Meta_Catalog. Original exception message: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '10-General' for key 'EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_NAME', query was: UPDATE `eav_attribute_group` SET `attribute_set_id` = ?, `attribute_group_name` = ?, `default_id` = ? WHERE (`attribute_group_id`='24')
@zlik zlik self-assigned this Dec 6, 2024
@zlik
Copy link
Contributor

zlik commented Dec 7, 2024

Fixed and will be released in 1.3.6 early next year. @Antonio-Bennett please let me know if you need the fix sooner – I can send it to you as a patch.

@zlik zlik closed this as completed Dec 7, 2024
@zlik zlik removed their assignment Dec 7, 2024
@Antonio-Bennett
Copy link
Author

@zlik Hey! Thank you for the quick turnaround. I would absolutely appreciate getting a patch! Let me know the easiest method for you :)

@zlik
Copy link
Contributor

zlik commented Dec 11, 2024

@Antonio-Bennett, feel free to save app/code/Meta/Catalog/Setup/Patch/Data/AddProductAttributes.php from 95aa1ac into your Magento codebase and that should do it. After it gets released as part of the extension, that file can be removed.

@Antonio-Bennett
Copy link
Author

Thank you! I'll go ahead and do so!

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

No branches or pull requests

2 participants