amzn / amazon-payments-magento-2-plugin

Extension to enable Amazon Pay on Magento 2
https://amzn.github.io/amazon-payments-magento-2-plugin/
Apache License 2.0
109 stars 77 forks source link

Fix setup:upgrade error when using prefixed tables #1197

Closed SamJUK closed 1 year ago

SamJUK commented 1 year ago

Fixes a fatal error during setup upgrade step, for stores using prefix database tables.

[staging] Unable to apply data patch Amazon\Pay\Setup\Patch\Data\PerformKeyUpgrade for module Amazon_Pay. Original exception message: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'client_mage_prod.core_config_data' doesn't exist, query was: SELECT `core_config_data`.`scope_id`, `core_config_data`.`scope`, `core_config_data`.`value` FROM `core_config_data` WHERE (path = 'payment/amazon_payment/access_key') ORDER BY `scope_id` ASC
[staging]  error  in magento2.php on line 295:
[staging] exit code 1 (General error)
done magento:upgrade:db 29s 566ms
ERROR: Task magento:upgrade:db failed!
NisiPasa commented 1 year ago

Hello, this has been corrected with the latest release 5.16.0 available on Marketplace. Thanks