Setup Command Multi Shop Duplicate Email

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
dev_podup
Posts: 15
Joined: 10 Aug 2023, 02:06

Setup Command Multi Shop Duplicate Email

Post by dev_podup » 15 Aug 2023, 10:03

Hello,

Version info:
Laravel - 8.x, PHP - 8.0, Aimeos - ~2023.04

I am trying to set up multiple shops. I've set the SHOP_MULTISHOP variable to true. But when I try to execute aimeos:setup command for a new site I'm getting this error: "SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'demo@example.com' for key 'unq_lvu_email'". Is there any way to customize or overwrite what data to be used for setup? And if not, is there any other way to solve this issue?

Thank you.

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Setup Command Multi Shop Duplicate Email

Post by aimeos » 15 Aug 2023, 10:08

Don't add the demo data to multiple shops as the email address is required to be unique across all sites.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

dev_podup
Posts: 15
Joined: 10 Aug 2023, 02:06

Re: Setup Command Multi Shop Duplicate Email

Post by dev_podup » 15 Aug 2023, 10:12

Then when I try to access the new site it's showing laravel exception error page. And anyway it is not working without any default data.

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Setup Command Multi Shop Duplicate Email

Post by aimeos » 15 Aug 2023, 10:25

Just execute that command:

Code: Select all

php artisan aimeos:setup
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

dev_podup
Posts: 15
Joined: 10 Aug 2023, 02:06

Re: Setup Command Multi Shop Duplicate Email

Post by dev_podup » 17 Aug 2023, 05:54

Thank you, that seems to work.

Post Reply