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

Re-installation duplicate key exception #540

Closed
damian-pastorini opened this issue Aug 30, 2024 · 1 comment
Closed

Re-installation duplicate key exception #540

damian-pastorini opened this issue Aug 30, 2024 · 1 comment

Comments

@damian-pastorini
Copy link

damian-pastorini commented Aug 30, 2024

Describe the bug
Exception throw after second time installation:

Shopware Plugin Lifecycle Service
=================================

 Install 1 plugin(s):
 * Adyen Payment (v4.1.0)

08:45:26 ERROR     [app] Migration: "Adyen\Shopware\Migration\Migration1681716164AlterAdyenPayment" failed: "An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'UQ_ADYEN_PAYMENT_PSPREFERENCE'"

In ExceptionConverter.php line 118:
                                                                                                                                           
  [Doctrine\DBAL\Exception\DriverException (1061)]                                                                                         
  An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'UQ_ADYEN_PAYMENT_PSPREFERENCE'      

Versions
Shopware version: 6.6.5.1
Plugin version: 4.1.0

To Reproduce
Steps to reproduce the behavior:

  1. Install the plugin.
  2. Uninstall the plugin.
  3. Install again.
  4. See the error.

Expected behavior
Installation should be success the second time as well.

Screenshots
image

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser Firefox
  • Version >129
@damian-pastorini
Copy link
Author

Duplicates #426

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

1 participant