Unable to properly rollback migrations

Created on 30 September 2024, about 2 months ago

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

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States MegaKeegMan

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

Comments & Activities

Production build 0.71.5 2024