Problem/Motivation

I am able to rollback, but migrating after rollback, the migration then causes field value revisions to create duplicate entries in the value_revisions_revision table.

[error]  Unable to insert revision due probably to something programmatically calling update and not properly making a revision.  Full message: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
...

Steps to reproduce

  1. configure field value revisions for fields on a node type
  2. run a migration for nodes of that type
  3. rollback the migration
  4. re-run the migration
  5. errors for every item

Proposed resolution

Implement a HOOK_entity_delete

Comments

megakeegman created an issue. See original summary.

  • mlncn committed 13e4cde4 on 1.0.x
    Implement hook entity delete to delete from our tables when content is...
mlncn’s picture

Status: Active » Needs review
megakeegman’s picture

Status: Needs review » Fixed

Re-tested the migrate -> rollback -> migrate
and it looks like errors are gone and things look as they should in the database

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.