-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
magento/module-catalog/Setup/Patch/Data/UpdateMultiselectAttributesBackendTypes.php breaks upgrade in migrated sites from 1.x #38036
Comments
Hi @ioweb-gr. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hmm, isn't the bug then in the data migration tool itself? Instead of copying the values, it should move them, so no duplicated values remain in the database? Or am I misunderstanding the issue? |
True but it's also a fact that people who upgraded M2 from M1 won't be able to upgrade to newer versions of Magento due to this patch so even if the data migration tool needs to be fixed, this patch should also guarantee a seemless upgrade experience as well |
Hmm maybe... I recently ran into the Magento 2 EAV Cleaner Console Command module (which we needed for the But I have the suspicion that its If you're interested in trying it out, make sure to not execute it on production immediately and have backups ready in case it does stuff you don't want it to do. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hello @ioweb-gr , Thanks for the report and collaboration! For data-migration-related issues we are using the below board: https://github.com/magento/data-migration-tool/issues For your convenience, we have created this issue there. You can refer to the below link for the same: magento/data-migration-tool#919 We are closing this issue from here. Please follow the above URL for any updates on this. Thanks |
@engcom-Bravo This is not an issue for the data migration tool though. No code you change there will help users who already migrated solve this. The code that needs to be altered is the patch I mentioned |
Unless @engcom-Bravo your official stance is that people who upgraded in the past, should never go to latest magento versions and they should redo the migration even if they are active in Magento 2 for a few years, I would suggest you reopen it. |
Preconditions and environment
Steps to reproduce
To replicate this you need
The system will try to copy data from the _varchar table back to the _text table which was already migrated with the data migration tool to _text and to _varchar table. In the process you'll get this error about duplicate values
Expected result
Upgrade occurs properly
Actual result
Duplicated values throw exceptions
Additional information
There is only one real solution here, the patch needs to first clear the invalid data from _text table before migrating from _varchar to _text
e.g.
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: