Skip to content

Duplicate entry 'email' for key 'calresources_resources_eml'  #22

@manu-p

Description

@manu-p

Hi,

It looks like it is not allowed to assign the same email address to more than one resource.

Let's say I want to set up "hotspots" resources, we get more than one and they're all under the responsibility of the same guy.

So here's what I enter:

sudo -u www-data php /var/www/nextcloud/occ calendar-resource:resource:create "HS1" 3 "Hotspot 1" "tech@domain" "Internet Access Point" "Name"

Right, here's for the 1st one.

Then:

sudo -u www-data php /var/www/nextcloud/occ calendar-resource:resource:create "HS2" 3 "Hotspot 2" "tech@domain" "Internet Access Point" "Name"

And here's what I get:

In ExceptionConverter.php line 60:
                                                                                                                                                                                                  
  An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'tech@domain' for key 'calresources_resources_eml'  
                                                                                                                                                                                                  
In Exception.php line 26:
                                                                                                                                                   
  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'tech@domain' for key 'calresources_resources_eml'  
                                                                                                                                                   

In Statement.php line 92:
                                                                                                                                                   
  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'tech@domain' for key 'calresources_resources_eml'  
                                                                                                                                                   
calendar-resource:resource:create <uid> <building_id> <display_name> <email> <resource_type> [<contact_person_user_id>]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions