-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Forwardport] Use batches and direct queries to fix sales address upgrade #20785
[Forwardport] Use batches and direct queries to fix sales address upgrade #20785
Conversation
Hi @ihor-sviziev. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi, |
Hi @slavvka, thank you for the review. |
124aac1
to
53bbfd2
Compare
@ihor-sviziev there is not such column as "orderAddressId" in "sales_order_address" table, used in 'where' clause in https://github.com/magento/magento2/pull/19098/files#diff-0815805b2d40fcf0d22ebd639e0d73c4R247. Which will lead to an error during update. |
'quote_address_id' => $quoteAddresses[$orderAddress['quote_id']]['address_id'] ?? null, | ||
]; | ||
$where = [ | ||
'orderAddressId' => $orderAddress['entity_id'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'orderAddressId' => $orderAddress['entity_id'] | |
'entity_id' => $orderAddress['entity_id'] |
As we discussed with @p-bystritsky in slack - change with entity_id fixed SQL error, but in general - data is incorrect. Need to re-check. |
Hi @p-bystritsky, |
Hi @ihor-sviziev, thank you for your contribution! |
…s address upgrade #20785
Description (*)
This is forwardport of #19098 to 2.3-develop
Magento Commerce compatible fix for sales address upgrade script.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Magento Commerce compatible fix for sales address upgrade script.
Contribution checklist (*)