-
Notifications
You must be signed in to change notification settings - Fork 211
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
Make VaultMigration compatible with disabled/removed Magento PayPal module #2806
base: main
Are you sure you want to change the base?
Make VaultMigration compatible with disabled/removed Magento PayPal module #2806
Conversation
…odule **Issue** The installation/upgrade of the Adyen Payment plugin fails with the following error: ``` Column not found: 1054 Unknown column 'method_code' in 'where clause', query was: SELECT `paypal_billing_agreement`.* FROM `paypal_billing_agreement` WHERE (method_code = 'adyen_oneclick') AND (status = 'active') ``` **Cause** The Adyen Payment module re-creates the table during migration by adding the agreement_data field (via db_schema.xml). However, when attempting to migrate the billing agreements to the vault, the process fails to query the table using the `method_code` and `status` because these fields do not exist in the table. **Solution** Ensure VaultMigration does not fail if the `paypal_billing_agreement` table is missing or required fields are missing.
Hello @fahu, Thank you for your contribution and providing a fix for token migration issue. We will review and merge this PR if there is no issue. Best Regards, |
…with-disabled-paypal-module
…with-disabled-paypal-module
…ining table prefix" This reverts commit e59cbbc.
Hello @fahu, Once again, thank you for your contribution. We have completed the review and the logic seems pretty straight forwards. It makes a lot sense. However, we are having difficulty to pass the tests as the following exception is thrown after
An example run summary can be found here. Do you have any idea about this issue? Best Regards, |
Issue
The installation/upgrade of the Adyen Payment plugin fails with the following error:
Cause
The Adyen Payment module re-creates the table during migration by adding the agreement_data field (via db_schema.xml). However, when attempting to migrate the billing agreements to the vault, the process fails to query the table using the
method_code
andstatus
because these fields do not exist in the table.Solution
Ensure VaultMigration does not fail if the
paypal_billing_agreement
table is missing or required fields are missing.