DB update: Integrity constraint violation: 1062 Duplicate entry

Created on 25 February 2022, over 2 years ago
Updated 9 May 2023, about 1 year ago

Problem/Motivation

When you run the database update script after updating to ver. 3.1.1, you get:

 [notice] Update started: multiple_registration_update_8204
 [error]  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '87' for key 'multiple_registration.PRIMARY': ALTER TABLE "multiple_registration" ADD PRIMARY KEY (`uid`); Array
 (
 )
  
 [error]  Update failed: multiple_registration_update_8204 
 [error]  Update aborted by: multiple_registration_update_8204 

May be related to: πŸ› Integrity constraint violation: 1062 Duplicate entry Fixed .

Steps to reproduce

Update to ver. 3.1.1 and run the updatedb script either via drush or update.php.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡΄Norway gisle Norway

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024