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.
To reproduce, create a node and save a second revision for it, then delete the first revision.
The node_revision table will no longer have a line for the deleted revision, but the corresponding row in node_field_revision will remain. I could be wrong but I think they are both supposed to be removed.
I observed the same bug while working with another entity type too.
Comments
Comment #2
mariusilie CreditAttribution: mariusilie commentedI confirm this is happening for me also. I'm using Drupal 8.1.7
Comment #3
alokbhatt CreditAttribution: alokbhatt commentedI couldn't re-generate the issue. I am using Drupal 8.1.9.
Comment #4
dagmarThis was already reported here: #2753971: ContentEntityStorageBase::deleteRevision() function does not remove node_field_revision entries thanks.