Upgrade 6.1-6.2 : alter table -> sql error Duplicated Ent

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

phbobo
Posts: 1
Joined: Sun Dec 26, 2010 8:58 pm
Location: Morocco

Upgrade 6.1-6.2 : alter table -> sql error Duplicated Ent

Post by phbobo »

When I try to upgrade my openemm database during the upgrade process from 6.1 to 6.2, the mysql upgrade command :

ALTER TABLE customer_1_binding_tbl ADD CONSTRAINT cust_1_bind_un UNIQUE KEY (customer_id, mailinglist_id);

gives the following result :

ERROR 1062 (23000) at line 1: Duplicate entry '157-8' for key 'cust_1_bind_un'

I even had fully modify my DB from MyISAM to InnoDB, but that doesn't help.

I am not expert in mysql, so I don't know how to fix this.

Thanks for your help.
Best Regards,
Ph.B.
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

This means that you have a duplicate entry in table customer_1_binding_tbl for a certain double of customer_id and mailinglist_id which you have to remove first before you can set the constraint. If you do not want to set this constraint you can go without it.
OpenEMM Maintainer
Post Reply