Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Doing an upgrade from a super old version (6.x-1.0) and the first update hook (4) that gets run when upgrading to 7.x-1.0 causes the following error:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'PRIMARY'
Simple enough fix, just re-order this update so that the existing entries are removed before the re-adding of the field so that there's no entries with a duplicate entry of '' in the primary key, then re-add the data after re-adding the field.
Patch coming.
Comments
Comment #1
Deciphered CreditAttribution: Deciphered commentedHehe, disregard this, turns out that I'm to blame, because it's my exportables patch that adds this upgrade path in the first place :|